Also with maven 2.1+, from the root directory of the project you can call :<div>mvn install -Ppkg-tomcat -amd -pl org.exoplatform.portal:exo.portal.component.common<br>
It will rebuild the component/common module and all others modules depending on it</div><div>Less fast but more secured.</div><div><br></div><div>To do like Dimitri in one long command, from the root directory of gatein :</div>

<div>mvn install -Ppkg-tomcat -pl org.exoplatform.portal:exo.portal.component.common,org.exoplatform.portal:exo.portal.packaging<br></div><div>or</div><div>mvn install -Ppkg-tomcat -pl component/common,packaging<br><br></div>

<div>My 2 sec of Maven best practices.</div><div><br></div><div>Arnaud<br><div class="gmail_quote">On Thu, Oct 8, 2009 at 11:43 AM, Dimitri BAELI <span dir="ltr">&lt;<a href="mailto:dbaeli@gmail.com">dbaeli@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>   Just to clarify the compilation/packaging practice.<br>   If you work on a component like gatein\portal\trunk\component\common\<br>

   To compile and package again the whole server, you just have to do :<br>         * mvn install in the component<br>

         * mvn install -Ppkg-tomcat in packaging<br>   We&#39;ll work later on for improving the hot deployment and simplier packaging (like not deleting the server install and only redeploy), but this won&#39;t be done this week.<br clear="all">

<font color="#888888">

Dimitri BAELI - eXo Platform SAS<br>
</font><br>_______________________________________________<br>
gatein-dev mailing list<br>
<a href="mailto:gatein-dev@lists.jboss.org">gatein-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
<br></blockquote></div><br></div>