<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Op 14-01-13 18:27, André Fróes schreef:<br>
</div>
<blockquote
cite="mid:CAC8f_wX4OMtEKQUXnapKMpSG6kBdkw=XTbtc5oboAU1E0F=W2g@mail.gmail.com"
type="cite">
<div dir="ltr">I'm trying by maven, but still can't do it
<div><br>
</div>
<div>
<div><modelVersion>4.0.0</modelVersion></div>
<div> <artifactId>ai</artifactId></div>
<div> <name>Proj</name></div>
<div> <packaging>jar</packaging></div>
<div><br>
</div>
<div><span class="" style="white-space:pre"> </span><parent></div>
<div><span class="" style="white-space:pre"> </span><groupId>my.new.project</groupId></div>
<div><span class="" style="white-space:pre"> </span><artifactId>parent-pom</artifactId></div>
<div><span class="" style="white-space:pre"> </span><version>1.0.0</version></div>
<div><span class="" style="white-space:pre"> </span></parent></div>
<div><span class="" style="white-space:pre"> </span></div>
<div><span class="" style="white-space:pre"> </span><properties></div>
<div><span class="" style="white-space:pre"> </span><org.drools.version>5.5.0.Final</org.drools.version></div>
<div><span class="" style="white-space:pre"> </span><org.codehaus.janino.version>2.5.16</org.codehaus.janino.version><span
class="" style="white-space:pre"> </span></div>
<div><span class="" style="white-space:pre"> </span></properties></div>
<div><span class="" style="white-space:pre"> </span></div>
<div><br>
</div>
<div> <!-- Dependencies --></div>
<div> <dependencies></div>
<div><br>
</div>
<div> <!-- Projects --></div>
<div> <dependency></div>
<div> <groupId>my.new.project</groupId></div>
<div> <artifactId>commons</artifactId></div>
<div> <version>1.0.0</version></div>
<div> </dependency></div>
<div><br>
</div>
<div> <!-- API --></div>
<div> <dependency></div>
<div> <groupId>org.drools</groupId></div>
<div>
<artifactId>drools-core</artifactId></div>
<div>
<version>${org.drools.version}</version></div>
<div> <scope>provided</scope></div>
</div>
</div>
</blockquote>
Why go scope provided?<br>
<blockquote
cite="mid:CAC8f_wX4OMtEKQUXnapKMpSG6kBdkw=XTbtc5oboAU1E0F=W2g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div> </dependency></div>
<div> <dependency></div>
<div> <groupId>org.drools</groupId></div>
<div>
<artifactId>drools-compiler</artifactId></div>
<div>
<version>${org.drools.version}</version></div>
<div> <scope>provided</scope></div>
</div>
</div>
</blockquote>
Why go scope provided?
<blockquote
cite="mid:CAC8f_wX4OMtEKQUXnapKMpSG6kBdkw=XTbtc5oboAU1E0F=W2g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div> </dependency></div>
<div> <dependency></div>
<div>
<groupId>org.codehaus.janino</groupId></div>
<div> <artifactId>janino</artifactId></div>
</div>
</div>
</blockquote>
By default drools-compiler transitively depends on a java compiler
(I forgot if it's janino or eclipse jdt),<br>
so you don't need to specify that dependency.<br>
If you want to use the other one, you might want to exclude the
default.<br>
Either way, you might want to try first with the default one, by not
declaring any janino/jdt dependency and let maven drag in the
transitive dependency automatically.<br>
<blockquote
cite="mid:CAC8f_wX4OMtEKQUXnapKMpSG6kBdkw=XTbtc5oboAU1E0F=W2g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<version>${org.codehaus.janino.version}</version></div>
<div> <scope>provided</scope></div>
<div> </dependency></div>
<div> </dependencies></div>
</div>
<div><br>
</div>
<div style="">is this right?</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/1/14 Geoffrey De Smet <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb">If you're using
maven/gradle/ivy/buildr, just update the version and let<br>
it figure out the transitive dependencies.<br>
Although you might want to use the enforcer plugin to
check if you<br>
haven't overwritten any transitive dependency to a lower
version:<br>
<a moz-do-not-send="true"
href="http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html"
target="_blank">http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html</a><br>
<br>
If you're using ant, basically replace all of them with
those from the<br>
5.5 lib zip.<br>
If you want to get rid of dead deps, compare the 5.4 lib
zip with the<br>
5.5 lib zip afterwards (= painful).<br>
If you just want the subset of deps that you need (like
with maven, for<br>
example if you only use drools-core, you don't need most
of the deps in<br>
the lib zip), don't use ant.<br>
<br>
Op 14-01-13 12:44, Andre Froes schreef:<br>
</div>
<div class="HOEnZb">
<div class="h5">> Hello everyone,<br>
><br>
> in order to update from drools 5.4 to 5.5 which lib
should I update? Or must<br>
> I replace them all?<br>
><br>
> Thanks<br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a
moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/Which-libs-should-I-update-after-update-tp4021500.html"
target="_blank">http://drools.46999.n3.nabble.com/Which-libs-should-I-update-after-update-tp4021500.html</a><br>
> Sent from the Drools: User forum mailing list
archive at Nabble.com.<br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>