where is “ <groupId>org.glassfish.embedded</groupId>” repository here?

孤人 提交于 2019-12-04 05:06:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!