【问题标题】:Solving Maven dependency error in Netbeans解决 Netbeans 中的 Maven 依赖错误
【发布时间】:2013-03-15 16:05:56
【问题描述】:

为什么我会收到以下错误?我正在使用 netbeans,但不确定我应该使用哪个命令行来重新运行 maven 并按照错误说明进行操作。我也发现了这个,但仍然不确定命令行在哪里Link

我已经下载了以下Code 并尝试运行它,但它遇到了以下错误

Failed to execute goal on project Struts2Example: Could not resolve dependencies for project com.mkyong.common:Struts2Example:war:com.mkyong.common: The following artifacts could not be resolved: javax.transaction:jta:jar:1.0.1B, javax.security:jacc:jar:1.0: Failure to find javax.transaction:jta:jar:1.0.1B in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

【问题讨论】:

    标签: hibernate jakarta-ee maven struts2


    【解决方案1】:

    该特定版本的 jta.jar 不再存在于 maven 存储库中。尝试将版本更改为 1.1 并重新构建。

    虽然,那个版本的 jacc 也不是。所以可能还是有问题。

    【讨论】:

      猜你喜欢
      • 2017-07-06
      • 2018-11-29
      • 2014-04-15
      • 2011-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-06
      • 2019-06-07
      相关资源
      最近更新 更多