Showing posts with label jenkins. Show all posts
Showing posts with label jenkins. Show all posts

Sep 14, 2012

ERROR: Failed to parse POMs

Strange situation where the local build success but the build on the jenkins fails. 

After investigation i have noticed that one of the developers have add a tab somewhere in the pom. 
The tab \t character cause this error in the jenkins

Removing this character solved the issue. Of course i have reported that also to the jenkins guys. 


Hoped it helped you,

Dor

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