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)
For more info on parallel maven builds:
Has anyone else experimented with this feature?
Paul.
--
Paul Robinson
Web Service Transactions Lead
paul.robinson@redhat.comJBoss, 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)