Performing a specific Maven phase

Is there a way to complete a specific maven build phase. For example, if I only want to run those plugins that are executed during the pre-integration phase, does Maven do this tool?

eg mvn pre-integration-phase 
+6
source share
2 answers

You cannot name the life cycle phase, but you can name the goals of the plugins that are associated with the life cycle phases.

 mvn compile:testCompile mvn failsafe:integration-test 

but usually it’s not necessary ...

+10
source

Not. You will have to run the plugins manually.

+2
source

Source: https://habr.com/ru/post/904335/


All Articles