问题
I want to use <groupId>org.glassfish.embedded</groupId>
in my dependencies. What repository should I use?
回答1:
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</url>
</repository>
回答2:
Since version 3.1.2, glassfish artifacts are in Maven Central, so you don't need any special repository.
<dependency>
<groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>3.1.2</version>
</dependency>
回答3:
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</url>
<layout>legacy</layout>
</repository>
What artifact do you want though?
回答4:
Maybe this will help: From What is the official Maven repository for Embedded GlassFish? : http://download.java.net/maven/glassfish/org/glassfish/extras/glassfish-embedded-all/3.1.1/
来源:https://stackoverflow.com/questions/3116978/where-is-groupidorg-glassfish-embedded-groupid-repository-here