<div><br></div><div>   All,</div><div><br></div><div>   Today protobuf used by Drools/jBPM was upgrade to version 2.5.0. If you only use the marshalling code, you don&#39;t need to do anything. Maven should automatically download the new version and use it.</div>
<div><br></div><div>   If you do protobuf development and need to re-generate the protobuf classes from time to time, here is a reminder of how to configure your environment. Please note that the configuration of the plugin (specially for the jBPM module) is extremely important, or you will start to have all kinds of errors and will not know why.</div>
<div><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">1. Download and install <span class="il" style="background-color:rgb(255,255,204)">protobuf</span> compiler from: <a href="http://code.google.com/p/protobuf/downloads/list" target="_blank" style="color:rgb(17,85,204)">http://code.google.com/p/<span class="il" style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">protobuf</span>/downloads/list</a></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
2. Install <span class="il" style="background-color:rgb(255,255,204)">protobuf</span>-dt eclipse plugin as detailed here: <a href="http://code.google.com/p/protobuf-dt/" target="_blank" style="color:rgb(17,85,204)">http://code.google.com/p/<span class="il" style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">protobuf</span>-dt/</a></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
3. Configure the destination directory to generate the java files as detailed in step 2 here:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<a href="http://code.google.com/p/protobuf-dt/wiki/IntegrationWithProtoc" target="_blank" style="color:rgb(17,85,204)">http://code.google.com/p/<span class="il" style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">protobuf</span>-dt/wiki/IntegrationWithProtoc</a><br>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Set the &quot;Java Output Directory&quot; to: src/main/java</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
4. VERY IMPORTANT FOR JBPM: jBPM Flow project has a .<span class="il" style="background-color:rgb(255,255,204)">proto</span> file that extends the data types defined in the .<span class="il" style="background-color:rgb(255,255,204)">proto</span> file in Drools Core, so you need to configure the <span class="il" style="background-color:rgb(255,255,204)">protobuf</span> import path as detailed here:</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<a href="http://code.google.com/p/protobuf-dt/wiki/ImportPaths" target="_blank" style="color:rgb(17,85,204)">http://code.google.com/p/<span class="il" style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">protobuf</span>-dt/wiki/ImportPaths</a></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Add the following import paths to the jbpm-flow project:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
${your drools-core project in eclipse}/src/main/resources</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">${your_drools_flow_project}/src/main/resources</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">   After doing that, when you edit and save the .</span><span class="il" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,204)">proto</span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"> </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">files, eclipse will automatically compile and regenerate the java source code for them.</span>-- </div>
<div><br></div><div>   Edson</div><div><br></div><div><br></div><div><br></div>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>