Can we start the maven build from where it failed

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

+77
java maven-2
May 25 '10 at 5:52
source share
6 answers

You can resume building from the 6th module with -rf or --resume-from :

-rf, --resume-from

For more details see Advanced reactor parameters .

+115
May 25 '10 at 11:01
source share

Here is an example

 mvn clean install -rf :your-module 
+10
Aug 23 '17 at 5:48 on
source share

you can resume building from any module you need with the -rf . For example, if your build failed in myproject-proxy, you can use the following command:

 mvn -rf myproject-proxy clean install 
+9
Jul 03 '14 at 12:17
source share

look at the maven summary and you will see the executables and where maven is stopped. then try the following:

 mvn clean install-Dmaven.test.skip=true -rf :yourModule 
+8
Oct 06 '16 at 10:14
source share

Syntax mvn -rf modulo mavengoal or mvn --remove-from modulename mavengoal

Example: mvn -rf admin-module clean install or mvn --remove-from admin-module clean install

0
Aug 27 '19 at 9:14
source share

You can run the assembly of module 6 separately to check if it still does not work, but I am afraid that you need to build all the modules from the very beginning, when you want to run the "large" assembly.

Edit: Of course, subsequent builds will be faster because modules 1-5 code is already compiled if you don't run the clean part of your build.

-2
May 25 '10 at 7:27
source share



All Articles