You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jason Dillon <ja...@planet57.com> on 2008/06/13 17:11:18 UTC

Pom user-configured goal+phase aliases

Just had a thought, would be nice if the pom exposed someway to define  
aliases for a set of goals/phases.

This would allow project specific names to be used to invoke a set of  
standard maven phases or a set of plugins.

Like I might want o have a "release" alias, which actually invokes:

     mvn clean release:prepare release:preform

Or a "rebuild" alias which actually invokes:

     mvn clean install

With pom configuration something like:

----8<----
<project>
     <build>
         <goalAliases>
             <goalAlias>
                 <name>rebuild</name>
                 <goals>
                     <goal>clean</goal>
                     <goal>install</goal>
                 </goals>
             </goalAlias>
         </goalAliases>
     </build>
</project>
---->8----

Just a thought...

--jason

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Pom user-configured goal+phase aliases

Posted by nicolas de loof <ni...@apache.org>.
I made something similar to help setup on my project :

running mvn -Psetup execute all required goals to prepare the developer env,
in my case a fast build (skipTests=true, compiler fail=false) +
eclipse:eclipse

This is done using a custom setup profile, that set default goal, some
properties and the required plugins.

Nico.

2008/6/13 Brian E. Fox <br...@reply.infinity.nu>:

> To me, it seems to detract from the intent of having a well known set of
> phases so once you know maven, you can pick up any maven build. It reeks
> of scripting...
>
> -----Original Message-----
> From: Jason Dillon [mailto:jason.dillon@gmail.com] On Behalf Of Jason
> Dillon
> Sent: Friday, June 13, 2008 11:11 AM
> To: Maven Developers List
> Subject: Pom user-configured goal+phase aliases
>
> Just had a thought, would be nice if the pom exposed someway to define
> aliases for a set of goals/phases.
>
> This would allow project specific names to be used to invoke a set of
> standard maven phases or a set of plugins.
>
> Like I might want o have a "release" alias, which actually invokes:
>
>     mvn clean release:prepare release:preform
>
> Or a "rebuild" alias which actually invokes:
>
>     mvn clean install
>
> With pom configuration something like:
>
> ----8<----
> <project>
>     <build>
>         <goalAliases>
>             <goalAlias>
>                 <name>rebuild</name>
>                 <goals>
>                     <goal>clean</goal>
>                     <goal>install</goal>
>                 </goals>
>             </goalAlias>
>         </goalAliases>
>     </build>
> </project>
> ---->8----
>
> Just a thought...
>
> --jason
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

RE: Pom user-configured goal+phase aliases

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
To me, it seems to detract from the intent of having a well known set of
phases so once you know maven, you can pick up any maven build. It reeks
of scripting...

-----Original Message-----
From: Jason Dillon [mailto:jason.dillon@gmail.com] On Behalf Of Jason
Dillon
Sent: Friday, June 13, 2008 11:11 AM
To: Maven Developers List
Subject: Pom user-configured goal+phase aliases

Just had a thought, would be nice if the pom exposed someway to define  
aliases for a set of goals/phases.

This would allow project specific names to be used to invoke a set of  
standard maven phases or a set of plugins.

Like I might want o have a "release" alias, which actually invokes:

     mvn clean release:prepare release:preform

Or a "rebuild" alias which actually invokes:

     mvn clean install

With pom configuration something like:

----8<----
<project>
     <build>
         <goalAliases>
             <goalAlias>
                 <name>rebuild</name>
                 <goals>
                     <goal>clean</goal>
                     <goal>install</goal>
                 </goals>
             </goalAlias>
         </goalAliases>
     </build>
</project>
---->8----

Just a thought...

--jason

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org