What are the correct group and artifact ids for Java EE 5 and 6 artifacts?

给你一囗甜甜゛ 提交于 2019-12-06 04:36:22

问题


So far we have been manually downloading the jars and deploying to our maven repo with custom group/artifact ids. I would like to avoid that. So my question is

  1. What are the correct group and artifact id's for Java EE 5 and 6 artifacts? I'd like to get the names at JSR level (for example I doesn't need the ids for Java EE 6 uber jar but individual apis like jsr 330 etc)
  2. Which is the CORRECT repo to get these from? Does Oracle host there in their own repos?

My main interest is in the APIs listed here for Java EE 6 and here for Java EE 5, each one as a separate artifact


Here is the Oracle mvn repository information from where you can download Java EE 6 artifacts.


回答1:


Most JSR and Java EE artifacts have artifactIds starting with javax

E.g. the dependency for JSR-330 is this:

<dependency>
    <groupId>javax.inject</groupId>
    <artifactId>javax.inject</artifactId>
    <version>1</version>
</dependency>

Most standard APIs are available in the central repo and hence can be found by mvnrepository.com.

Or you can just browse the javax directory of your maven mirror of choice. Here's javax on ibiblio.org

Sun / Oracle Java API's that are not in central are usually in the download.java.net maven repo




回答2:


Below are the official repository and artifact id's for Java EE 5 and 6

Java EE 5 : http://download.java.net/maven/2/javaee/javaee-api/5/

Java EE 6 : http://repo1.maven.org/maven2/javax/javaee-api/6.0/




回答3:


I believe you have to get them manually because you need to accept the Sun/Oracle license agreement before using them.



来源:https://stackoverflow.com/questions/4606757/what-are-the-correct-group-and-artifact-ids-for-java-ee-5-and-6-artifacts

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