将要添加到 Maven 项目中的 JBoss EAP 运行时依赖项记录在哪里?
Where is documented the JBoss EAP runtime dependencies to be added in a maven project?
我正在使用 JBoss EAP 6.1 和 Java EE 6。
JBoss 工具添加了 JBoss 运行时库,如 org.jboss.resteasy.annotations.cache.NoCache
在 eclipse 上,但它无法在 maven 上编译,因为 maven 对此一无所知。
我想通过 maven 添加所有 JBoss EAP 库,以便成功构建它。是否在某处记录了我必须使用的工件才能在类路径中添加所有 JBoss EAP 库?是否有我可以添加的单个依赖项来表示整个 Java EE 6 堆栈及其 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>
然后我们只需在更新容器和 boom 时更改 <version>6.2</version>
,神奇!
此信息位于与 JBoss 捆绑在一起的快速入门中的 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>
${version.jboss.bom.eap}
定义在父pom
<!-- 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>
这里有解释https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html/Development_Guide/Maven_BOM_Usage.html(需要redhat支持账号)
JBoss 组件版本也在此处列出 https://access.redhat.com/articles/112673
我正在使用 JBoss EAP 6.1 和 Java EE 6。
JBoss 工具添加了 JBoss 运行时库,如 org.jboss.resteasy.annotations.cache.NoCache
在 eclipse 上,但它无法在 maven 上编译,因为 maven 对此一无所知。
我想通过 maven 添加所有 JBoss EAP 库,以便成功构建它。是否在某处记录了我必须使用的工件才能在类路径中添加所有 JBoss EAP 库?是否有我可以添加的单个依赖项来表示整个 Java EE 6 堆栈及其 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>
然后我们只需在更新容器和 boom 时更改 <version>6.2</version>
,神奇!
此信息位于与 JBoss 捆绑在一起的快速入门中的 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>
${version.jboss.bom.eap}
定义在父pom
<!-- 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>
这里有解释https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html/Development_Guide/Maven_BOM_Usage.html(需要redhat支持账号)
JBoss 组件版本也在此处列出 https://access.redhat.com/articles/112673