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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to