开发者

Maven cannot download Glassfish embedded package

I开发者_运维百科 have a problem with maven. I wanted to add dependency to embedded Glassfish. I added an entry to pom.xml, containing a fragment copied from internet:

<dependency>
    <groupId>org.glassfish.extras</groupId>
    <artifactId>glassfish-embedded-all</artifactId>
    <version>3.1</version>
</dependency>

However, mvn package prints an error.

Access denied to: http://repository.jboss.org/maven2/org/glassfish/extras/glassfish-embedded-all/3.1/glassfish-embedded-all-3.1.pom -> [Help 1]

What is wrong?


Did you pointed to the right repository at you pom.xml file?

Insert this at the end of it, just before the last </project> tag:

<repositories>
  <repository>
    <id>glassfish-releases</id>
    <url>http://download.java.net/maven/glassfish</url>
  </repository>
</repositories>


Connecting to http://repository.jboss.org/maven2 per HTTP throws an 403 Forbidden error, as it is outdated.

This SO question has:

http://maven.glassfish.org/content/groups/glassfish

as the new URL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜