原文: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>