2010-06-25 29 views

回答

2

我不知道你想用什麼,但組號org.glassfish.embedded看起來很老。

我建議檢查已發佈有關GlassFish 3.0.1的發佈,最近maven coordinates並使用GlassFish中的Nexus倉庫:

<repository> 
    <id>java.net</id> 
    <name>GlassFish Maven Repository</name> 
    <url>http://maven.glassfish.org/content/groups/glassfish</url> 
</repository> 
+0

thx,我可以告訴我在哪裏找到這個存儲庫? – EdwardLau 2010-06-25 11:06:32

+1

不客氣。這個存儲庫在我的回答中發佈的鏈接中提到:https://glassfish.dev.java.net/downloads/3.0.1-final.html#maven – 2010-06-25 11:14:57

+0

哦,我發現它,thx – EdwardLau 2010-06-25 11:17:28

0

http://download.java.net/maven/glassfish/org/glassfish/embedded/

該程序存儲庫添加到您的pom.xml

<repository> 
<id>glassfish.java.net</id> 
<name>Glassfish repository</name> 
<url>http://download.java.net/maven/glassfish</url> 
<layout>legacy</layout> 
</repository> 

你想要什麼,雖然神器?

+0

使用這個倉庫,但警告消息 無法更新maven2-repository.dev.java.net指數| HTTP://download.java.net/maven/glassfish/:資源NEXUS-Maven的資源庫-index.properties不存在 – EdwardLau 2010-06-25 10:32:43

1

從版本3.1.2開始,glassfish構件位於Maven Central中,因此您不需要任何特殊的存儲庫。

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