2012-01-25 41 views
20

我得到這個缺少神器消息缺少javax.transaction.jta神器

javax.transaction的:JTA:罐子:1.0.1B as 403禁止

Multiple annotations found at this line: 
- Missing artifact javax.transaction:jta:jar:1.0.1B 
- ArtifactTransferException: Failure to transfer javax.transaction:jta:jar:1.0.1B from http:// 
repository.jboss.com/maven2 was cached in the local repository, resolution will not be reattempted until 
the update interval of jboss has elapsed or updates are forced. Original error: Could not transfer artifact 
javax.transaction:jta:jar:1.0.1B from/to jboss (http://repository.jboss.com/maven2): Access denied to 
http://repository.jboss.com/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar. Error code 403, Forbidden 

pom.xml有:

<repositories> 
    <repository> 
     <id>jboss</id> 
     <url>http://repository.jboss.com/maven2</url> 
    </repository> 
</repositories> 

你能告訴我如何解決這個問題嗎?

+2

試試這個回購' https://repository.jboss.org/nexus/content/groups/public/' –

回答

47

首先,從JBoss存儲庫URL末尾刪除maven2令牌。

並添加Java.net Maven倉庫:

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

我不知道爲什麼,但它真的解決了這個問題。謝謝! – TomR

相關問題