On 24/06/2010 2:36 PM, Rajasekar Karthik wrote:
Hi,
How can Maven's package of war be speed up?
Currently, it is extremely slow - around 7 minutes or more.

I even set the following options
-DMAVEN_OPTS="-Xms64m –Xmx512m"
(higher Xmx to see if it will increase speed - but, it does not)

Other options being set and command (invoked through NetBeans)
mvn.bat -Dnetbeans.deploy=true -Dnetbeans.execution=true
-DMAVEN_OPTS=-Xms64m –Xmx512m package

You probably should refactor the packaging to extract out some of the functionality into libraries that can be built separately. This will reduce the size of the war file if you deploy the libraries to the container's shared library.

You may also want to move some of the back-end functionality into services that servlets can call.

You may also just want to look breaking the webapp into multiple webapps.

If your build is disk bound, you will have little success in fiddling with memory settings.

Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to