Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing a specific Maven phase

Tags:

maven

phase

Is there any way to execute a specific phase in a maven build. For example, if I only want to run those plug-ins that execute in the pre-integration-phase, does Maven provide a means to do that?

e.g.
mvn pre-integration-phase
like image 859
TERACytE Avatar asked Dec 22 '11 18:12

TERACytE


People also ask

How many different build phases are available in Maven?

There are three built-in build lifecycles.


1 Answers

You can't call the life-cycle-phase itself but you can call the goals of the plugins which are bound to the life-cycle-phases.

mvn compile:testCompile

mvn failsafe:integration-test

but usually this shouldn't be needed...

like image 164
khmarbaise Avatar answered Sep 23 '22 03:09

khmarbaise