org.wildfly.bom和使用的wildfly服务器版本之间是否有link?
Is there a link between org.wildfly.bom and the version of the wildfly server used?
我目前正在开发一些应用程序,我正在使用 wildfly 9.0.2.Final 作为应用程序服务器。目前我正在使用 bom 版本 8.2.2.Final 用于以下工件:
- jboss-javaee-7.0-with-tools
- jboss-javaee-7.0-with-hibernate
- jboss-javaee-7.0-with-security
我在学习教程的同时开始使用这些版本。但是我已经看到现在 wildfly 10 已经出来了,可能其他一些依赖项也有依赖项。说不定以后javaee-8.0就可以了
是否有关于不同工件包含的内容以及升级父 bom 版本时应该牢记什么的文档?
您的 BOM 版本应与您的部署 Wildfly 版本相匹配。
假设您对 Wildfly 提供的依赖项使用 provided
范围,您需要确保使用的是正确的版本。如果您使用了错误的版本,您的应用程序可能无法按预期工作,甚至无法启动,因为某些 API 可能是 deprecated/removed,或者因为某些功能可能尚不可用。
旁注:Wildfly BOM lack some dependencies,因此我们使用父级作为 BOM:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>9.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
对于 WildFly 9+ 的 boms,我们稍微改变了结构,所以现在我们只有 2 个 boms。
其中大部分合并为一个。
- wildfly-javaee7
- wildfly-javaee7-with-tools
第二个不仅包括 API,还包括对测试有用的工具,如 arquillian、junit 等...
所以最适合您的需求是在您的 pom.xml
中使用它
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>wildfly-javaee7-with-tools</artifactId>
<scope>import</scope>
<type>pom</type>
<version>10.0.0.Final</version>
</dependency>
</dependencies>
</dependencyManagement>
您始终可以在存储库 https://github.com/wildfly/boms
的 github 中找到有关如何使用它的最新信息和文档
我目前正在开发一些应用程序,我正在使用 wildfly 9.0.2.Final 作为应用程序服务器。目前我正在使用 bom 版本 8.2.2.Final 用于以下工件:
- jboss-javaee-7.0-with-tools
- jboss-javaee-7.0-with-hibernate
- jboss-javaee-7.0-with-security
我在学习教程的同时开始使用这些版本。但是我已经看到现在 wildfly 10 已经出来了,可能其他一些依赖项也有依赖项。说不定以后javaee-8.0就可以了
是否有关于不同工件包含的内容以及升级父 bom 版本时应该牢记什么的文档?
您的 BOM 版本应与您的部署 Wildfly 版本相匹配。
假设您对 Wildfly 提供的依赖项使用 provided
范围,您需要确保使用的是正确的版本。如果您使用了错误的版本,您的应用程序可能无法按预期工作,甚至无法启动,因为某些 API 可能是 deprecated/removed,或者因为某些功能可能尚不可用。
旁注:Wildfly BOM lack some dependencies,因此我们使用父级作为 BOM:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>9.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
对于 WildFly 9+ 的 boms,我们稍微改变了结构,所以现在我们只有 2 个 boms。 其中大部分合并为一个。
- wildfly-javaee7
- wildfly-javaee7-with-tools
第二个不仅包括 API,还包括对测试有用的工具,如 arquillian、junit 等...
所以最适合您的需求是在您的 pom.xml
中使用它<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>wildfly-javaee7-with-tools</artifactId>
<scope>import</scope>
<type>pom</type>
<version>10.0.0.Final</version>
</dependency>
</dependencies>
</dependencyManagement>
您始终可以在存储库 https://github.com/wildfly/boms
的 github 中找到有关如何使用它的最新信息和文档