TERACytE
TERACytE

Reputation: 7863

Executing a specific 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

Upvotes: 24

Views: 16608

Answers (2)

khmarbaise
khmarbaise

Reputation: 97527

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...

Upvotes: 22

Ryan Stewart
Ryan Stewart

Reputation: 128929

No. You'd have to run the plugins manually.

Upvotes: 4

Related Questions