2013-03-26 174 views
0

为什么我收到以下错误?我正在使用netbeans,并且不确定应该使用哪条命令重新运行maven并按照错误说明进行操作。我发现这是很好,但仍然不知道在哪里的命令行是Link解决Netbeans中的Maven依赖关系错误

我已经下载了以下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 

回答

0

的JTA的特定版本.jar不再存在于Maven仓库中了。尝试将版本更改为1.1并重建。

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