title: How to use jars from Wildfly correctly in Maven?
body: <p>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 with the following in it:</p>
  
  <pre><code>...
  &lt;dependencyManagement&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.wildfly.bom&lt;/groupId&gt;
        &lt;artifactId&gt;jboss-javaee-7.0-with-all&lt;/artifactId&gt;
        &lt;version&gt;8.1.0.Final&lt;/version&gt;
        &lt;type&gt;pom&lt;/type&gt;
        &lt;scope&gt;import&lt;/scope&gt;
      &lt;/dependency&gt;
  ...
    &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  ...
  </code></pre>
  
  <p>Unfortunately, the above BOM does not include various jar files that I know are in the default Wildfly 8.1.0.Final distribution.  In particular, the cause of this question is the cxf-api jar file.  I know it resides at this location in Wildfly:</p>
  
  <pre><code>wildfly-8.1.0.Final/modules/system/layers/base/org/apache/cxf/main/cxf-api-2.7.11.jar
  </code></pre>
  
  <p>but it is not being managed by the BOM recommended for Wildfly.</p>
  
  <p>How do I <em>correctly</em> add cxf-api, and similar jar files, to the project's pom.xml, preferably without having to specify each one individually?  Sure, I could do something like this:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
    &lt;artifactId&gt;cxf-api&lt;/artifactId&gt;
    &lt;version&gt;2.7.11&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>but I'd really rather not have to do this for each and every jar file that is already a part of Wildfly.</p>
  
  <p>Isn't there a BOM that I can import?</p>