Java 在哪里记录了要添加到maven项目中的JBoss EAP运行时依赖项?
我正在使用JBossEAP6.1和JavaEE6 JBoss工具添加了JBoss运行时库,比如eclipse上的Java 在哪里记录了要添加到maven项目中的JBoss EAP运行时依赖项?,java,maven,jakarta-ee,jboss,jboss-eap-6,Java,Maven,Jakarta Ee,Jboss,Jboss Eap 6,我正在使用JBossEAP6.1和JavaEE6 JBoss工具添加了JBoss运行时库,比如eclipse上的org.JBoss.resteasy.annotations.cache.NoCache,但它无法在maven上编译,因为maven对此一无所知 我想通过maven添加所有JBoss EAP库,以便成功构建它。是否在某个地方记录了我必须使用的工件,以便能够在类路径中添加所有JBoss EAP库?我是否可以添加一个表示整个JavaEE6堆栈及其JBoss扩展(如org.JBoss.res
org.JBoss.resteasy.annotations.cache.NoCache
,但它无法在maven上编译,因为maven对此一无所知
我想通过maven添加所有JBoss EAP库,以便成功构建它。是否在某个地方记录了我必须使用的工件,以便能够在类路径中添加所有JBoss EAP库?我是否可以添加一个表示整个JavaEE6堆栈及其JBoss扩展(如org.JBoss.resteasy.annotations.cache.NoCache
)的依赖项
我在寻找类似的东西:
<dependency>
<groupId>org.jboss.eap</groupId>
<artifactId>jboss-eap</artifactId>
<version>6.1</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
org.jboss.eap
jboss eap
6.1
聚甲醛
假如
然后,当我们更新容器和吊杆时,我们只需更改
6.2
,神奇 此信息位于与JBoss捆绑的QuickStart中包含的pom.xml文件中
从厨房水槽示例:
<dependencies>
<!-- JBoss distributes a complete set of Java EE 6 APIs including a Bill
of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection)
of artifacts. We use this here so that we always get the correct versions
of artifacts. Here we use the jboss-javaee-6.0-with-tools stack (you can
read this as the JBoss stack of the Java EE 6 APIs, with some extras tools
for your project, such as Arquillian for testing) and the jboss-javaee-6.0-with-hibernate
stack you can read this as the JBoss stack of the Java EE 6 APIs, with extras
from the Hibernate family of projects) -->
<dependency>
<groupId>org.jboss.bom.eap</groupId>
<artifactId>jboss-javaee-6.0-with-tools</artifactId>
<version>${version.jboss.bom.eap}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.jboss.bom.eap</groupId>
<artifactId>jboss-javaee-6.0-with-hibernate</artifactId>
<version>${version.jboss.bom.eap}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
此处对此进行了说明(需要redhat支持帐户)
JBoss组件版本也在这里列出
<!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->
<version.jboss.bom.eap>6.2.0.GA</version.jboss.bom.eap>