bash>mvn help:effective-pom | grep phase <phase>site-deploy</phase> <phase>package</phase> <phase>generate-resources</phase> <phase>site</phase> <phase>site-deploy</phase> <phase>test</phase> <phase>test-compile</phase> <phase>compile</phase> <phase>clean</phase> <phase>install</phase> <phase>process-resources</phase> <phase>process-test-resources</phase> <phase>package</phase> <phase>deploy</phase>
? Martin ______________________________________________ Inte förändra och störa detta meddelande > Date: Sat, 21 Dec 2013 09:52:56 +0100 > Subject: Plugin phase awareness... > From: lennart.jore...@gmail.com > To: dev@maven.apache.org > > Hello all, > > How can a running Mojo query the Maven API (or some other API) to find out > which Maven Phase it has been invoked in? Something like ... > > String currentPhase = getSomeMavenApiHelper().getCurrentPhase(); > > -- > +==============================+ > | Bästa hälsningar, > | [sw. "Best regards"] > | > | Lennart Jörelid > | EAI Architect & Integrator > | > | jGuru Europe AB > | Mölnlycke - Kista > | > | Email: l...@jguru.se > | URL: www.jguru.se > | Phone > | (skype): jgurueurope > | (intl): +46 708 507 603 > | (domestic): 0708 - 507 603 > +==============================+