Unknown KieSession name in drools 6.0 (while trying to add drools to existing maven/eclipse project)

前端 未结 6 2160
南旧
南旧 2020-12-19 12:24

I am trying to adapt drools6.0 for an existing code base (it is maven project under eclipse). I didnt had need to learn drools or maven before (though they were part of my p

6条回答
  •  青春惊慌失措
    2020-12-19 12:49

    Little late on the answer here, but this might help others.

    Check your META-INF/Maven/pom.properties file, and it might contain this:

    groupId=
    artifactId=
    version=
    

    Nothing was defined! Changed it to:

    groupId=com.sample  (package name)
    artifactId=DroolsTest (class name)
    version=0.0.1-SNAPSHOT  
    

    Copy and paste the same data from pom.properties file to pom.xml . Runs fine now.

提交回复
热议问题