我试图休眠注释添加到我的Maven的项目,但我有这个以下错误:拒绝访问http://repository.jboss.com/maven2/
- ArtifactDescriptorException: Failed to read artifact descriptor for hibernate-commons-annotations:hibernate-commons-annotations:jar:3.0.0.GA: ArtifactResolutionException: Failure to transfer hibernate-commons-annotations:hibernate-commons-annotations:pom:3.0.0.GA from http:// repository.jboss.com/maven2/ was cached in the local repository, resolution will >not be reattempted until the update interval of JBoss repository has elapsed or updates are forced. Original error: Could not transfer artifact hibernate->commons-annotations:hibernate-commons-annotations:pom:3.0.0.GA from/to JBoss repository (http://repository.jboss.com/maven2/): Access denied to >http://repository.jboss.com/maven2/hibernate-commons-annotations/hibernate- commons-annotations/3.0.0.GA/hibernate-commons-annotations-3.0.0.GA.pom. Error >code 403, Forbidden
- ArtifactDescriptorException: Failed to read artifact descriptor for hibernate->annotations:hibernate-annotations:jar:3.3.0.GA: ArtifactResolutionException: Failure to transfer hibernate-annotations:hibernate->annotations:pom:3.3.0.GA from http://repository.jboss.com/maven2/ was cached in the local repository, resolution will not be reattempted until the >update interval of JBoss repository has elapsed or updates are forced. Original error: Could not transfer artifact hibernate-annotations:hibernate->annotations:pom:3.3.0.GA from/to JBoss repository (http://repository.jboss.com/ maven2/): Access denied to http://repository.jboss.com/maven2/hibernate- >annotations/hibernate-annotations/3.3.0.GA/hibernate- annotations-3.3.0.GA.pom. Error code 403, Forbidden
我使用此代码
<repository>
<id>JBoss repository</id>
<url>http://repository.jboss.com/maven2/</url>
</repository>
和
<!-- Hibernate annotation -->
<dependency>
<groupId>hibernate-annotations</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.0.GA</version>
</dependency>
<dependency>
<groupId>hibernate-commons-annotations</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.0.0.GA</version>
</dependency>