Hi,

thanks for the info - I think I might try the custom lifecycle approach if I continue suffering from the ill effects of not remembering where the profile is coming from (I think it must be my short term memory is going....)

Rgds
Adam

Anders Hammar on 10/06/10 11:48, wrote:
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 <adam.ma...@cyberspaceroad.com>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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to