How to use jars from Wildfly correctly in Maven?

前端 未结 1 851
醉话见心
醉话见心 2020-12-15 07:48

I\'m working on a project to deploy to Wildfly, and I\'m using Maven to build it. This is a complex project with multiple war/jar/ear files, so there\'s a parent pom.xml wi

相关标签:
1条回答
  • 2020-12-15 08:32

    WildFly BOMs (aka JBoss Bill of Materials in its original version) is a set of dependencies used to enhance deployment of dependant projects and automate in some way their tests. It does not unfortunately includes dependencies used in WildFly core i.e. the Application Server.

    The pom.xml (project descriptor) that you really need to import just the way you did for your BOMs pom file is the WildFly parent pom. So just import it into your own project pom and you will have your dependecies transitevelly resolved:

    <dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>org.wildfly</groupId>
          <artifactId>wildfly-parent</artifactId>
          <version>8.1.0.Final</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
      </dependencies>
    </dependencyManagement>
    

    Checkout the Apache CXF version used in the target WildFly version and just pick up the stable tags that match your needs.

    0 讨论(0)
提交回复
热议问题