[jboss-as7-dev] Parallel maven build: 33% improvement

Paul Robinson paul.robinson at redhat.com
Mon Mar 25 11:17:03 EDT 2013


All,

I tried telling maven to use all my cores (8 if you count hyper-threaded cores) and I've seen a 33% reduction in build times. Here's my results:

./build.sh clean install -DskipTests			3:43
./build.sh clean install -DskipTests -T 4		2:57
./build.sh clean install -DskipTests -T 8		2:30

I'm using an SSD, so YMMV.

However, there are 4 plugins that are not marked as @ThreadSafe, so i'm not sure how safe this is.

[WARNING] org.apache.maven.plugins:maven-help-plugin:2.2 (Can't find an issue for this yet)
[WARNING] org.codehaus.mojo:buildnumber-maven-plugin:1.2 (Claims to be fixed in 1.2: http://jira.codehaus.org/browse/MBUILDNUM-13)
[WARNING] org.codehaus.mojo:xml-maven-plugin:1.0 (Unresolved: http://jira.codehaus.org/browse/MOJO-1709)
[WARNING] org.kuali.maven.plugins:properties-maven-plugin:1.5.3 (Unresolved: http://jira.codehaus.org/browse/MOJO-1677)

For more info on parallel  maven builds:

https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html

Has anyone else experimented with this feature?

Paul.

-- 
Paul Robinson
Web Service Transactions Lead
paul.robinson at redhat.com

JBoss, a Division of Red Hat
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson
(USA), Charlie Peters (USA)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20130325/395165ad/attachment.html 


More information about the jboss-as7-dev mailing list