6.4. Dependency Management

In order to use correct Maven dependencies in your Red Hat JBoss Fuse project, relevant Bill Of Materials (BOM) and parent POM files must be added to the project's pom.xml file. Adding the BOM and parent will ensure that correct versions of plug-ins and transitive dependencies from the provided Maven repositories are included in the project.
To ensure correct dependency usage in your project, declare the following parent in the project's pom.xml file:
  • org.jboss.fuse.bom:jboss-fuse-parent:6.2.1.redhat-084
and add the following two BOM files as dependencies in the dependencyManagement section:
  • org.jboss.fuse.bom:jboss-fuse-parent:6.2.1.redhat-084
Use the entries from the code sample below for this purpose.
<parent>
  <groupId>org.jboss.fuse.bom</groupId>
  <artifactId>jboss-fuse-parent</artifactId>
  <version>6.2.1.redhat-084</version>
</parent>

...

<dependencyManagement>
  <dependencies>
    <dependency>
   	<groupId>org.jboss.fuse.bom</groupId>
   	<artifactId>jboss-fuse-parent</artifactId>
   	<version>6.2.1.redhat-084</version>
  	 <type>pom</type>
   	<scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>