<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I believe the way it is at the moment, the head version must change for it to detect a change in the over all build. I don’t think it detects and updates transitively only.<div><br></div><div>Mark<br><div><div>On 6 May 2014, at 22:08, Pykhtin, Alex &lt;<a href="mailto:apykhtin@ebay.com">apykhtin@ebay.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">I’m trying to use KieScanner in 6.0.1.Final build and just can’t make it work. Maybe it’s actually an issue with my using of Maven.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Here’s my code:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReleaseId releaseId = ks.newReleaseId(<span class="Apple-converted-space">&nbsp;</span></span><span style="font-size: 10pt; font-family: Consolas; color: rgb(42, 0, 255);">"com.study"</span><span style="font-size: 10pt; font-family: Consolas;">,<span class="Apple-converted-space">&nbsp;</span></span><span style="font-size: 10pt; font-family: Consolas; color: rgb(42, 0, 255);">"project_jar"</span><span style="font-size: 10pt; font-family: Consolas;">,<span class="Apple-converted-space">&nbsp;</span></span><span style="font-size: 10pt; font-family: Consolas; color: rgb(42, 0, 255);">"0.0.1-SNAPSHOT"</span><span style="font-size: 10pt; font-family: Consolas;"><span class="Apple-converted-space">&nbsp;</span>);</span><span style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KieContainer<span class="Apple-converted-space">&nbsp;</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">kContainer</span><span class="Apple-converted-space">&nbsp;</span>= ks.newKieContainer( releaseId );</span><span style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KieSession kSession =<span class="Apple-converted-space">&nbsp;</span><span style="background-color: silver; background-position: initial initial; background-repeat: initial initial;">kContainer</span>.newKieSession(</span><span style="font-size: 10pt; font-family: Consolas; color: rgb(42, 0, 255);">"ksession-rules_jar"</span><span style="font-size: 10pt; font-family: Consolas;">);</span><span style="font-size: 10pt; font-family: Consolas;"><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KieScanner kScanner = ks.newKieScanner(<span class="Apple-converted-space">&nbsp;</span><span style="background-color: silver; background-position: initial initial; background-repeat: initial initial;">kContainer</span><span class="Apple-converted-space">&nbsp;</span>);</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Where “com.study” is my fictional domain and “project_jar” is the jar of my project. It has dependency on “drools_jar” which is a kjar of version “0.0.1-SNAPSHOT” (same version for both jars, by the way).<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Later, I’m trying to test drools_jar updating by doing two things:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -0.25in;"><span>1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>Rebuilding and deploying drools_jar to the local repository;<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -0.25in;"><span>2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>Calling<span class="Apple-converted-space">&nbsp;</span><span style="font-size: 10pt; font-family: Consolas;">kScanner.scanNow()</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">And KieScanner is not picking up the changes.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">If I’m deploying drools_jar with the same “0.0.1-SNAPSHOT” version, nothing happens, until the next time I restart my project.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">If I’m deploying drools_jar with the new “0.0.2-SNAPSHOT” version, then it’s not a correct dependency and KieScanner is not picking it up (as I expected).<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">If I’m rebuilding project_jar with a new dependency on “0.0.2-SNAPSHOT” of drools_jar, KieScanner is not picking it up either, but restart helps (as I expected).<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">What is the proper practice of using KieScanner?<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p>&nbsp;</o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks,<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Alex<o:p></o:p></div></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" style="color: purple; text-decoration: underline;">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" style="color: purple; text-decoration: underline;">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></blockquote></div><br></div></body></html>