title: Drools Kie application without Maven
body: <p>As a developer I want to create a Maven project and build an executable standalone JAR application. (No Spring Boot)</p>
  
  <p>During development and build processes I want to add a Drools Kie artifact as dependency</p>
  
  <pre><code>&lt;dependency&gt;
   &lt;groupId&gt;com.mycompany&lt;/groupId&gt;
   &lt;artifactId&gt;mydrools&lt;/artifactId&gt;
   &lt;version&gt;[1.0.0,)&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>build my application as executable Jar and run it. My application has the code to call the Drools engine:</p>
  
  <pre><code>KieSession kSession = kContainer.newKieSession();
  kSession.insert(myBean);
  kSession.fireAllRules();
  </code></pre>
  
  <p>Above all, whilst I deploy my application on production:</p>
  
  <ul>
  <li>I do <em>not</em> want to install Maven on my production server</li>
  <li>I do <em>not</em> want my application to scan a local nor remote Maven repository</li>
  <li>I want my application automatically scans periodically for a new version of my Drools Kie artifact <em>without</em> any reference to a Maven repository, just looking at the filesystem</li>
  </ul>
  
  <p>I have tried with</p>
  
  <pre><code>String fileName = System.getenv("HOME") + "/libs/mydrools-1.0.0.jar";
  File file = new File(fileName);
  KieRepository kieRepository = ks.getRepository();        
  KieContainer kContainer = ks.newKieContainer(ks.newReleaseId("com.mycompany", "mydrools", "1.0.0"));
  kieRepository.addKieModule(ks.getResources().newFileSystemResource(file));
  KieScanner kScanner = ks.newKieScanner( kContainer );
  kScanner.start( 10000L );
  </code></pre>
  
  <p>Loading the JAR works fine, but it seems that I am also forced to configure at least a minimal Maven repository (~/.m2 folder and a settings.xml). I get a heap of errors by the org.apache.maven plugin and related classes.</p>
  
  <p>Of course I do <em>not</em> want my production environment to rely nor depend on any Maven configuration. I just want to run a JAR with another JAR (e.g. libs/mydrools-1.0.0.jar) as dependency and possibly dynamically reload that dependency whilst I update the libs/mydrools-1.0.0.jar.</p>
  
  <p>Basically I need to set the internal Drools Kie Maven plugin completely disabled (offline).</p>
  
  <p>How is it possible to do this with Drools 6.2.0.Final?</p>
  
  <p><strong>Update</strong></p>
  
  <p>This issue is strictly related with</p>
  
  <p><a href="https://stackoverflow.com/questions/22322433/using-drools-6-maven-architecture-completely-offline">Using Drools 6 Maven architecture completely offline</a></p>
  
  <p><a href="http://lists.jboss.org/pipermail/rules-users/2014-June/036245.html" rel="nofollow noreferrer">http://lists.jboss.org/pipermail/rules-users/2014-June/036245.html</a></p>