Google+ Followers

Jul 19, 2012

Maven parallel build

Hi All,

I have looked for a while for this option, wondered how could it be that they don't have it.

Finally i found it, since maven 3v, they add an experimental option, the T option.

You can now run maven build parallel way. Meaning, maven will check which parts from the project tree he can build in parallel and do it.

Performance ?

Big boost, something like >20%, Do it for your self and compare, you want regret it.

Good also for CI (Jenkins for example)

How?

First way,
"mvn -T 4 clean install"

-T   => Stands for telling maven to use the parallel way.

4    => Means, 4 threads to use.

Second way and my preferred,
"mvn -T 4C clean install"

-T   => Stands for telling maven to use the parallel way.

4C  => Means, 4 threads on each core


Dor

No comments:

Post a Comment