views:

29

answers:

2

I want to use <groupId>org.glassfish.embedded</groupId> in my dependencies. What repository should I use?

A: 

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

Add the respository to your pom.xml

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

What artifact do you want though?

pakore
Use this repository but warning messageUnable to update index for maven2-repository.dev.java.net|http://download.java.net/maven/glassfish/: Resource nexus-maven-repository-index.properties does not exist
EdwardLau
+1  A: 

I don't know what you want to use but the groupId org.glassfish.embedded looks pretty old.

I suggest to check the more recent maven coordinates that have been published with the release of GlassFish 3.0.1 and to use the Nexus repository for GlassFish:

<repository>
   <id>java.net</id>
   <name>GlassFish Maven Repository</name>
   <url>http://maven.glassfish.org/content/groups/glassfish&lt;/url&gt;
</repository> 
Pascal Thivent
thx, can i tell me where found this repository?
EdwardLau
You're welcome. This repository is mentioned in the link I posted in my answer: https://glassfish.dev.java.net/downloads/3.0.1-final.html#maven
Pascal Thivent
oh,i found it,thx
EdwardLau