[rules-users] how can drools file access class from an external jar
Jason Novotny
novotny at gridsphere.org
Thu Jan 8 20:42:32 EST 2009
I should add that the error I'm seeing is the following:
17:37:05,634 INFO RuleSet:50 - Reading MyFirstRule
org.drools.rule.InvalidRulePackage: org.myorg.rules.data.StateRule
Compilation error : [Rule name=My First Rule 1, agendaGroup=MAIN,
salience=0, no-loop=false]
org/myorg/rules/Rule_My_First_Rule_1_0.java (2:38) : Only a type can
be imported. org.myorg.rules.data.State resolves to a package
Rule Compilation error : [Rule name=property type Adder Conforming 55,
agendaGroup=MAIN, salience=0, no-loop=false]
Thanks, Jason
Jason Novotny wrote:
>
> Hi,
>
> I'm using maven to organize my project into modules. I have all my
> drools related code in one module called xxx-rules and things work
> fine. However, if I move one of the classes referenced by a .drl rules
> file into another module xxx-core it doesn't work anymore. Does anyone
> know how I can instruct the loader to look for the class in a
> different maven module?
>
> Thanks, Jason
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list