小编Gma*_*yem的帖子

访问被拒绝http://repository.jboss.com/maven2/

我试图将hibernate注释添加到我的Maven项目中,但是我遇到了以下错误:

  • ArtifactDescriptorException:无法读取hibernate-commons-annotations的工件描述符:hibernate-commons-annotations:jar:3.0.0.GA:ArtifactResolutionException:无法传输hibernate-commons-annotations:hibernate-commons-annotations:pom:3.0.0来自http:// repository.jboss.com/maven2/的.GA缓存在本地存储库中,在JBoss存储库的更新间隔过去或强制更新之前,不会重新尝试解析.原始错误:无法传输工件hibernate-> commons-annotations:hibernate-commons-annotations:pom:3.0.0.GA from/to JBoss repository(http://repository.jboss.com/maven2/):访问被拒绝> http://repository.jboss.com/maven2/hibernate-commons-annotations/hibernate- commons-annotations/3.0.0.GA/hibernate-commons-annotations-3.0.0.GA.pom.错误>代码403,
    • ArtifactDescriptorException:无法读取hibernate-> annotations的工件描述符:hibernate-annotations:jar:3.3.0.GA:ArtifactResolutionException:无法传输hibernate-annotations:hibernate-> annotations:pom:3.3.0.GA from http:/ /repository.jboss.com/maven2/缓存在本地存储库中,在JBoss存储库的更新间隔过去或强制更新之前,不会重新尝试解析.原始错误:无法传输工件hibernate-annotations:hibernate-> annotations:pom:3.3.0.GA from/to JBoss repository(http://repository.jboss.com/ maven2 /):拒绝访问http:// repository.jboss.com/maven2/hibernate- > annotations/hibernate-annotations/3.3.0.GA/hibernate- annotations-3.3.0.GA.pom.错误代码403,禁止

我用这个代码

<repository>
  <id>JBoss repository</id>
  <url>http://repository.jboss.com/maven2/</url>
</repository>
Run Code Online (Sandbox Code Playgroud)

<!-- 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>
Run Code Online (Sandbox Code Playgroud)

jboss annotations hibernate maven

-2
推荐指数
1
解决办法
4664
查看次数

标签 统计

annotations ×1

hibernate ×1

jboss ×1

maven ×1