# Revision history [back]

### Bussiness Rules Engine in Opendaylight

Hi,

I am trying to use DROOLS Business Rules Engine in a MD-SAL plugin. Now, drools is available in nexus repository. But when I add the below mentioned jars as dependency in POM, it throws dependency resolution (missing requirement) error in karaf .

The reason I figured out for the above error is that my MD-SAL project uses packages in these bundles which should be exported by some other bundle in karaf. Since, it cannot find those packages in karaf container under "package:exports" command, it throws this error.

However, if I start karaf in "apacke-karaf-4.0.4/bin/karaf" and deploy a sample DROOLS project from this github repository(https://github.com/cmoulliard/droolsjbpm-osgi-examples), no such error is thrown.

    <dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>${drools.version}</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>${drools.version}</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-decisiontables</artifactId> <version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<!-- <version>5.0.0</version> -->
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-osgi-integration</artifactId>
<version>\${drools.version}</version>
</dependency>