<div dir="ltr">Hello,<div>in the hope this could save time if someone has been experiencing same issue. Drools 6.0.1.Final</div><div><br></div><div>I had message &quot;Cannot find KieModule&quot; with kieServices.newKieContainer() with LATEST or RELEASE , instead of explicit version number (eg: 0.0.1) on a application where the KIE module Rule artifact project kjar has been locally-installed from remote Maven repository, that is the right hand side of this diagram: <a href="http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single/#d0e933">http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single/#d0e933</a></div>

<div><br></div><div><div>Meaning that before launching Application, I performed</div><div>mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=com.acme:X:LATEST -DrepoUrl=<a href="http://nexus-hostname/nexus/content/repositories/releases/">http://nexus-hostname/nexus/content/repositories/releases/</a></div>

</div><div><br></div><div>Then:</div><div>kieServices.newKieContainer() with LATEST, </div><div>kieServices.newKieContainer() with RELEASE,</div><div><br></div><div>failed with stack trace:</div><div><div>Exception in thread &quot;main&quot; java.lang.RuntimeException: Cannot find KieModule: com.acme:X:RELEASE</div>

<div>        at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:86)</div><div>        at (...)</div></div><div><br></div><div>But kieServices.newKieContainer() with a fixed version, eg.: 0.0.2 did indeed worked OK, if installed in the local .m2 repository.</div>

<div><br></div><div>To avoid this issue, I found only 3 possible workarounds</div><div>1 use mvn maven-dependency-plugin:go-offline but did not work all of the time</div><div>2 manually ensure maven-metadata-local.xml file is generate in local .m2 repository</div>

<div>3 just download manually .jar and .pom of the remote maven repo, and then install with mvn install:install-file </div><div><br></div><div>In this case, of workaround kieServices.newKieContainer()  works OK with all the version LATEST, RELEASE, and fixed version number.</div>

<div><br></div><div>Raise jira DROOLS-419 with more details and example projects, please don&#39;t hate me if was just me missing something or not-Drools issue actually</div><div>=P</div><div>In my defense I had good intentions saving somebody&#39;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 ;)</div>

<div><br></div><div>Hope this helps,</div><div>Ciao</div><div>MM</div></div>