Hello,in the hope this could save time if someone has been experiencing same issue. Drools 6.0.1.Final
Meaning that before launching Application, I performed
Then:
kieServices.newKieContainer() with LATEST,
kieServices.newKieContainer() with RELEASE,
failed with stack trace:
Exception in thread "main" java.lang.RuntimeException: Cannot find KieModule: com.acme:X:RELEASE
at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:86)
at (...)
But kieServices.newKieContainer() with a fixed version, eg.: 0.0.2 did indeed worked OK, if installed in the local .m2 repository.
To avoid this issue, I found only 3 possible workarounds
1 use mvn maven-dependency-plugin:go-offline but did not work all of the time
2 manually ensure maven-metadata-local.xml file is generate in local .m2 repository
3 just download manually .jar and .pom of the remote maven repo, and then install with mvn install:install-file
In this case, of workaround kieServices.newKieContainer() works OK with all the version LATEST, RELEASE, and fixed version number.
Raise jira DROOLS-419 with more details and example projects, please don't hate me if was just me missing something or not-Drools issue actually
=P
In my defense I had good intentions saving somebody's else time in case same strange behavior, which is really strange because to me it worked only with explicit fixed version number, and that was really bizarre ;)
Hope this helps,
Ciao
MM