Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we start the maven build from the point where it failed

Tags:

java

maven-2

Suppose, I am doing a full build on my large project which has 7 modules and on the 6th module, the build failed because a test failed. Is there any way by which I can start the build from the point it failed?

like image 793
Shekhar Avatar asked May 25 '10 05:05

Shekhar


2 Answers

You can resume the build from the 6th module using -rf or --resume-from:

-rf, --resume-from
          Resume reactor from specified project

See the Advanced Reactor Options for details.

like image 156
Pascal Thivent Avatar answered Oct 15 '22 07:10

Pascal Thivent


Here is the example

mvn clean install -rf :your-module 
like image 35
M Sach Avatar answered Oct 15 '22 07:10

M Sach