Hi Eric, <br><br>Someone already made a contrib of a maven plugin, I think I did some review on that code but it never went to mainstream. <br>could you please compare your code to the attachment? <br><a href="http://jira.jboss.org/jira/browse/JBRULES-1273">http://jira.jboss.org/jira/browse/JBRULES-1273</a><br>
<br><br><br><div class="gmail_quote">On Fri, Mar 7, 2008 at 1:22 PM, Eric Miles &lt;<a href="mailto:eric.miles@kronos.com">eric.miles@kronos.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have not performed any tests on this, but I&#39;m sure the Drools guys<br>
could comment on it as they provide serialized vs non-serialized support<br>
in the framework. &nbsp;I would have to think it would decrease<br>
initialization time as you&#39;re only de-serializing objects vs compiling a<br>
rule set. &nbsp;Of course, your build time will increase :)<br>
<br>
Our main goal was to limit the number (and size) of the jars we had to<br>
include in our application as we already had a very large distributable<br>
for our application.<br>
<br>
Some features of the compilation mojo:<br>
- Precompiles drls, ruleflow, and dsl into their individual packages<br>
- Supports single package being spread across multiple DRL and rule flow<br>
files using same package name.<br>
- Supports DSL through a specific naming convention (some work could be<br>
done here to be a little more flexible)<br>
- Supports compression to decrease serialized package file sizes<br>
(Currently gzip, could tweak to support other compressions)<br>
- Serializes via XStream (could be tweaked to support different<br>
serialization mechanisms)<br>
<font color="#888888"><br>
Eric<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Fri, 2008-03-07 at 16:57 +0100, Geoffrey De Smet wrote:<br>
&gt; Sounds interesting.<br>
&gt; Does it noticeably decrease RuleBase initialization time at runtime?<br>
&gt;<br>
&gt; With kind regards,<br>
&gt; Geoffrey De Smet<br>
&gt;<br>
&gt;<br>
&gt; Eric Miles wrote:<br>
&gt; &gt; Is there a Maven Drools compilation mojo, provided either by the Drools<br>
&gt; &gt; team or some open source project? &nbsp;If not, I have one that I&#39;d be<br>
&gt; &gt; willing to submit. &nbsp;I think it&#39;s pretty slick and would only require a<br>
&gt; &gt; few tweaks to truly make it useful (hard coded to currently use XStream<br>
&gt; &gt; serialization).<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; rules-users mailing list<br>
&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Fernando Meyer <a href="http://fmeyer.org">http://fmeyer.org</a><br>JBoss Rules Core Developer<br><a href="mailto:fernando@fmeyer.org">fernando@fmeyer.org</a>