Friday, August 09, 2013

Maven BOM's (Bill of Materials)

Starting from version 6.0.0.CR2, we 'll release BOM (Bill of Materials) files:
  • org.drools:drools-bom
  • org.jbpm:jbpm-bom
  • org.optaplanner:optaplanner-bom
A BOM file makes it easier to use Drools, jBPM or OptaPlanner in your maven project, because you need to specify the <version> only once:


  <dependencyManagement>

    <dependencies>

      <dependency>

        <groupId>org.drools</groupId>

        <artifactId>drools-bom</artifactId>

        <type>pom</type>

        <version>6.0.0.CR2</version>

        <scope>import</scope>

      </dependency>

      ...

    </dependencies>

  </dependencyManagement>

  <dependencies>

    <dependency>

      <groupId>org.kie</groupId>

      <artifactId>kie-api</artifactId>

    </dependency>

    <dependency>

      <groupId>org.drools</groupId>

      <artifactId>drools-compiler</artifactId>

      <scope>runtime</scope>

    </dependency>

    ...

  <dependencies>

Share/Bookmark