4.4. 在 Maven 项目中作为依赖项管理导入 JBoss EAP MicroProfile BOM
导入 JBoss EAP MicroProfile Bill of Materials (BOM),以控制运行时 Maven 依赖项的版本。当您在 < dependencyManagement&
gt; 部分中指定 BOM 时,您不需要单独指定 提供
的范围中定义的 Maven 依赖项版本。
先决条件
您已初始化了 Maven 项目。
流程
在
pom.xml
配置文件的 properties 部分中,为 BOM 版本添加属性。<properties> ... <version.bom.microprofile>5.0.0.GA-redhat-00009</version.bom.microprofile> </properties>
<properties> ... <version.bom.microprofile>5.0.0.GA-redhat-00009</version.bom.microprofile> </properties>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 属性 <
version.bom.microprofile&
gt; 中定义的值用作 BOM 版本的值。导入 JBoss EAP BOMs 依赖项管理。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
另外,您可以将带有 Tools Bill 的 JBoss EAP EE 导入到您的项目。如需更多信息,请参阅在 Maven 项目中导入 JBoss EAP BOMs 作为依赖项管理。