[jboss-jira] [JBoss JIRA] (DROOLS-373) Kie Maven plugin don't use the project classpath

Jinghai Rao (JIRA) issues at jboss.org
Mon Apr 28 19:38:33 EDT 2014


    [ https://issues.jboss.org/browse/DROOLS-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964233#comment-12964233 ] 

Jinghai Rao commented on DROOLS-373:
------------------------------------

I have a problem with Drools Eclipse plugin which may relate to this bug. I imported the attached project to eclipse as a Maven Project, and then converted it to a Drools project. Then I got an error at the third line of package.drl: "global org.apache.commons.lang3.tuple.ImmutablePair ip;". The error message is "Unable to find class 'org.apache.commons.lang3.tuple.ImmutablePair'". 

I have un-commented the dependency part in pom.xml, but it didn't change anything.

Actually I have this problem for all external classes, so I have to disable drools nature. Despite the error message, I can run the project inside eclipse without any problem. 

I think you guys are using eclipse too. Do you have the same problem?

Below is my environment:

* OS: Mac OS X 10.9.2 
* Eclipse Kepler 
* Drool Eclipse Plugin - JBoss Drools Core 6.0.1Final. (I don't have problem with Drools Core 5.6.0Final) 
* Java SE 1.7 
* Drools Runtime 6.0.1

Thanks.
                
> Kie Maven plugin don't use the project classpath
> ------------------------------------------------
>
>                 Key: DROOLS-373
>                 URL: https://issues.jboss.org/browse/DROOLS-373
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 6.0.1.Final
>
>         Attachments: drools6scratch-kiemavenclasspath.zip
>
>
> When compiling drls the kie maven plugin uses the plugin classpath instead of the project one. This imply that it is necessary to duplicate the dependencies used by the kie project also inside the plugin declaration, as reported by this email: http://drools.46999.n3.nabble.com/rules-users-Drool-6-0-0-Final-2-question-re-kie-maven-plugin-please-td4027117.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list