Nope, not possible. You can only bind to a specific phase and if you don't execute that phase you will not get the output.
The only solution I can think of is some kind of script that executes maven twice, like this: mvn %1 mvn help:active-profiles /Anders On Thu, Jun 10, 2010 at 12:17, Adam Hardy <[email protected]>wrote: > I've changed my mind and want the active profile info to appear last, so > that it's still visible on the console when mvn is finished. > > Is that possible? By looking at the lifecycle phases, it seems there is not > a simple way to do it, since I might run any of compile, test, package or > install. > > Or can I bind it to multiple phases? > > Adam Hardy on 07/06/10 14:35, wrote: > >> I want help:active-profiles to be executed once at the start of any run I >> do, so I have put this in my superpom: >> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-help-plugin</artifactId> >> <executions> >> <execution> >> <phase>validate</phase> >> <id>active-profiles</id> >> <goals> >> <goal>active-profiles</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> >> but sometimes it appears twice, e.g. with mvn install. Is that expected? >> Other times, e.g. mvn compile, is fine. >> >> I also want it to execute first, so I figured the validate phase is the >> one to go for. Is that correct? >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
