Also with maven 2.1+, from the root directory of the project you can call :
mvn install -Ppkg-tomcat -amd -pl org.exoplatform.portal:exo.portal.component.common
It will rebuild the component/common module and all others modules depending on it
Less fast but more secured.

To do like Dimitri in one long command, from the root directory of gatein :
mvn install -Ppkg-tomcat -pl org.exoplatform.portal:exo.portal.component.common,org.exoplatform.portal:exo.portal.packaging
or
mvn install -Ppkg-tomcat -pl component/common,packaging

My 2 sec of Maven best practices.

Arnaud
On Thu, Oct 8, 2009 at 11:43 AM, Dimitri BAELI <dbaeli@gmail.com> wrote:
Hello,
   Just to clarify the compilation/packaging practice.
   If you work on a component like gatein\portal\trunk\component\common\
   To compile and package again the whole server, you just have to do :
         * mvn install in the component
         * mvn install -Ppkg-tomcat in packaging
   We'll work later on for improving the hot deployment and simplier packaging (like not deleting the server install and only redeploy), but this won't be done this week.
Dimitri BAELI - eXo Platform SAS

_______________________________________________
gatein-dev mailing list
gatein-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev