Drools + Maven

    Originally this started as a post asking for help, but since I just figure out how to do this, I thought I would post it.

     

    Here is how to create a basic Drools project in maven.

     

    Create a standard maven pom.xml with the following dependencies

     

             <dependency>
                <groupId>org.drools</groupId>
                <artifactId>drools-core</artifactId>
                <version>5.0.1</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>org.drools</groupId>
                <artifactId>drools-compiler</artifactId>
                <version>5.0.1</version>
                <type>jar</type>
            </dependency>

     

    Make sure your pom.xml has the following repo

        <repositories>
            <repository>
                <id>JBossRepo</id>
                <url>http://repository.jboss.com/maven2/</url>
            </repository>
        </repositories>

     

     

    That is it.  You should now be able to include Drools in your projects.