2013-03-26 180 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也不是。所以可能仍然有問題。