Missing javax.transaction.jta artifact

  1. 云栖社区>
  2. 博客>
  3. 正文

Missing javax.transaction.jta artifact

雪梦科技 2012-12-15 18:38:00 浏览863
展开阅读全文

原文:http://stackoverflow.com/questions/9003298/missing-javax-transaction-jta-artifact


jta下载不了,提示如下:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.687s
[INFO] Finished at: Mon Nov 12 12:48:16 MMT 2012
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project SpringExample: Could not resolve dependencies for project com.mkyong.common:SpringExample:jar:1.0-SNAPSHOT: Failure to find javax.transaction:jta:jar:1.0.1B in http://repo1.maven.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]


解决办法:在pom文件中添加以下源。

<repository>
    <id>java.net</id>
    <url>http://download.java.net/maven/2/</url>
</repository>


网友评论

登录后评论
0/500
评论
雪梦科技
+ 关注