解决Netbeans中的Maven依赖错误

时间:2013-03-26 00:28:12

标签: hibernate java-ee maven struts2

为什么我收到以下错误?我正在使用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

1 个答案:

答案 0 :(得分:0)

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

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