<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">The cached information is produced, but not written to the jar. It’s a bug, we’ll fix next week.<div><br></div><div>Mark<br><div><div>On 8 Feb 2014, at 14:16, Matteo Mortari &lt;<a href="mailto:matteo.mortari@gmail.com">matteo.mortari@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr">Ciao,</p><p dir="ltr">I have the same problem when mvn compile, or mvn install, "&nbsp;The resulting jar file isn't any different then when not using the plugin.". So I second your message with interest. I had the same understanding as yours, it should precompile the rules in the jar, but unable to get any results on this one - I thought was only me. </p><p dir="ltr">Concerning your other issue when at code execution you got error, I guess it depends how you set up your "engine" project and code. Personally I have a pom.xml with the drools BOM, and kie-ci as the only dependency. That works for execution at runtime without errors, at least for me. </p><p dir="ltr">Hope this helps? Monitoring this thread with interest </p><p dir="ltr">MM</p>
<div class="gmail_quote">On 8 Feb 2014 14:25, "Scott Thibault" &lt;<a href="mailto:sthibault@codonis.com">sthibault@codonis.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I thought when you used the maven plugin that the rules files were compiled into a binary form so that you could deploy with a minimal set of dependencies.&nbsp; It's not working for me though.&nbsp; This is my pom.xml file:</div>

<div><div><pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="<a href="http://maven.apache.org/POM/4.0.0" target="_blank">http://maven.apache.org/POM/4.0.0</a>"
         xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"
         xsi:schemaLocation="<a href="http://maven.apache.org/POM/4.0.0" target="_blank">http://maven.apache.org/POM/4.0.0</a> <a href="http://maven.apache.org/xsd/maven-4.0.0.xsd" target="_blank">http://maven.apache.org/xsd/maven-4.0.0.xsd</a>"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;parent&gt;
    &lt;groupId&gt;org.kie&lt;/groupId&gt;
    &lt;artifactId&gt;kie-parent-with-dependencies&lt;/artifactId&gt;
    &lt;version&gt;6.0.1.Final&lt;/version&gt;
    &lt;!-- relativePath causes out-of-date problems on hudson slaves --&gt;
    &lt;!--&lt;relativePath&gt;../droolsjbpm-build-bootstrap/pom.xml&lt;/relativePath&gt;--&gt;
  &lt;/parent&gt;

  &lt;packaging&gt;kjar&lt;/packaging&gt;
  &lt;artifactId&gt;default-kiesession&lt;/artifactId&gt;
  &lt;name&gt;Drools API examples - Default KieSession&lt;/name&gt;

  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.drools&lt;/groupId&gt;
      &lt;artifactId&gt;drools-compiler&lt;/artifactId&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;

  &lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.kie&lt;/groupId&gt;
        &lt;artifactId&gt;kie-maven-plugin&lt;/artifactId&gt;
        &lt;version&gt;6.0.1.Final&lt;/version&gt;
        &lt;extensions&gt;true&lt;/extensions&gt;
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
            &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
            &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;

  &lt;repositories&gt;
    &lt;!-- Bootstrap repository to locate the parent pom when the parent pom has not been build locally. --&gt;
    &lt;repository&gt;
      &lt;id&gt;jboss-public-repository-group&lt;/id&gt;
      &lt;name&gt;JBoss Public Repository Group&lt;/name&gt;
      &lt;url&gt;<a href="http://repository.jboss.org/nexus/content/groups/public/" target="_blank">http://repository.jboss.org/nexus/content/groups/public/</a>&lt;/url&gt;
      &lt;layout&gt;default&lt;/layout&gt;
      &lt;releases&gt;
        &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
      &lt;/releases&gt;
      &lt;snapshots&gt;
        &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;updatePolicy&gt;daily&lt;/updatePolicy&gt;
      &lt;/snapshots&gt;
    &lt;/repository&gt;
  &lt;/repositories&gt;

  &lt;scm&gt;
    &lt;connection&gt;scm:git:git@github.com:droolsjbpm/drools.git&lt;/connection&gt;
    &lt;developerConnection&gt;scm:git:git@github.com:droolsjbpm/drools.git&lt;/developerConnection&gt;
    &lt;url&gt;<a href="https://github.com/droolsjbpm/drools" target="_blank">https://github.com/droolsjbpm/drools</a>&lt;/url&gt;
  &lt;/scm&gt;
&lt;/project&gt;</code></pre></div><div>I build with the mvn package command.&nbsp; The resulting jar file isn't any different then when not using the plugin.  When I try to execute the code I get the error:</div><div><span>The Eclipse JDT Core jar is not in the classpath</span></div>

<div><span></span>&nbsp;</div><div><span>Any suggestions?</span></div><div><span></span>&nbsp;</div><div><span></span>&nbsp;</div></div></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users</blockquote></div><br></div></body></html>