<p dir="ltr">You don&#39;t need to run on 2 machines; I was trying to explain why the dependency could be resolved in kie-wb without the additional &lt;repository&gt; element in your consuming projects pom.</p>
<p dir="ltr">You are correct that the pom is used at build time. There were lots of emails recently about your enquiry that showed the solution.  I&#39;ll ask a colleague to forward to this list.</p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote">On 12 Dec 2013 00:05, &quot;vimalkansal&quot; &lt;<a href="mailto:vimalkansal@yahoo.com">vimalkansal@yahoo.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">
Yes, you are correct, my application, .m2 and kie-wb are running on the same<br>
machine., and I can see your point. But in the different instance(the<br>
scenario that I originally described) I have a web application, .m2 and<br>
kie-web running on the same machine and my code is not able to download the<br>
jar file from local .m2 repo. I may also add that these 2 scenarios are on<br>
different machines :<br>
<br>
Machine 1: Java SE App, .m2, Kie-wb with M2_HOME env variable setup  -- this<br>
works<br>
<br>
Machine 2: Java Web app, maven repo, Kie-wb (I am not sure if M2_HOME is<br>
setup, as this is different developers machine)<br>
<br>
I had a brief look at org.kie.scanner.embedder.MavenSettings.java and I have<br>
the feeling that on machine 2 (M2_HOME) is not set up, so basically the<br>
embedded maven is not pointing to the same maven repo to which Kie-wb is. I<br>
will try that when the developer is back.<br>
<br>
So as you can see, I am still working with local maven repo scenario. Now<br>
coming back to what you have suggested(for remote repo), i.e include the<br>
remote repo and the dependency on artifact (containing rules) in my<br>
applications POM file. Now this is confusing : Isn&#39;t the pom file used only<br>
at build stage when it will download any dependencies from the repositories<br>
specified in pom.xml, settings.xml? So in a way when I declare the<br>
dependency on my rule artifact in my applications&#39;s pom.xml, I am<br>
downloading the artifact at compile time. In other words when my application<br>
starts running, by that time it already has that artifact(i.e rules). After<br>
reading the doc I had the impression that by having kie-ci on classpath of<br>
the web app, web app should be able to download the artifact at run time<br>
rather than compile time.<br>
<br>
Thx<br>
<br>
Vimal<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools6-Having-trouble-in-using-kie-ci-tp4027208p4027234.html" target="_blank">http://drools.46999.n3.nabble.com/Drools6-Having-trouble-in-using-kie-ci-tp4027208p4027234.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>