CDI issue with Drools (6.3) embedded in EAP 6.4

19 views
Skip to first unread message

Rajith Muditha Attapattu

unread,
Aug 28, 2016, 12:37:37 PM8/28/16
to Drools Usage
I'm running Drools (6.3.0) embedded in an application thats deployed into EAP 6.4

I'm loading a kjar from maven.

container = KieServices.Factory.get().newKieContainer(makeReleaseId(rulesGroupId, rulesArtifactId, rulesVersion));

My pom contains
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-ci</artifactId>
<version>${kie.version}</version>
</dependency>

However during deployment it fails with the following error 

11:12:36,910 WARN  [Sisu] (http-/127.0.0.1:8080-1) Error injecting: org.apache.maven.DefaultMaven: java.lang.NoClassDefFoundError: org/apache/maven/plugin/MojoNotFoundException

        at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.7.0_79]

        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585) [rt.jar:1.7.0_79]

        at java.lang.Class.getDeclaredConstructors(Class.java:1906) [rt.jar:1.7.0_79]

 


The above code works standalone, but I have to include (in addition kie-ci)

<dependency>

<groupId>org.apache.maven</groupId>

<artifactId>maven-plugin-api</artifactId>

<version>3.3.9</version>

</dependency>


Therefore I tried including it in the WAR, but still no luck.


Any help in overcoming the above is much appreciated.


Regards,


Rajith

Reply all
Reply to author
Forward
0 new messages