force lifecycle prerequisite for maven plugin execution?

Posted by nsayer on Stack Overflow See other posts from Stack Overflow or by nsayer
Published on 2010-03-21T20:24:13Z Indexed on 2010/03/21 20:31 UTC
Read the original article Hit count: 704

Filed under:
|
|

I use the maven-properties-plugin during the initialization phase to read in a bunch of properties from a properties file.

I also have the jetty plugin configured to set a couple of the project properties - including those read in above - as system properties to jetty.

If I run the result as

mvn initialize jetty:run-war

it works.

If I just say

mvn jetty:run-war

it fails. How can I force a goal specified on the command line to run in a lifecycle that includes the initialization phase?

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about maven-plugin