You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Benjamin Bentmann <be...@udo.edu> on 2008/01/23 23:34:53 UTC

New Profile Activator

Hi,

due to the experiences with the maven-release-plugin that my colleagues and
I made, we are performing releases manually. Our POMs have a release profile
that currently needs to be activated via the <property> activator. However 
being humans, people tend to forget to activate this profile when invoking 
Maven to build/deploy the artifact...

Things would become easier if the release profile was activated magically in
the right moment. In my scenario, this "right moment" seems to be
expressible by the condition
  !${project.version}.endsWith("-SNAPSHOT")
i.e. we have either snapshots or releases and Maven could detect this just
by looking at the project version.

Therefore I would like to ask whether a new profile activator like
  <nonSnapshot>
to realize the above mentioned condition would be a wishworthy feature or is
generally not useful.

Regards,


Benjamin Bentmann


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


Re: New Profile Activator

Posted by John Casey <jd...@commonjava.org>.
I think it's a great idea. Unfortunately, in 2.0.x this requires a  
change to the xml parser for the pom.xml (in trunk - 2.1-snapshot -  
it's available via the <custom/> activator)...at least, I think it  
would.

-john

On Jan 23, 2008, at 5:34 PM, Benjamin Bentmann wrote:

> Hi,
>
> due to the experiences with the maven-release-plugin that my  
> colleagues and
> I made, we are performing releases manually. Our POMs have a  
> release profile
> that currently needs to be activated via the <property> activator.  
> However being humans, people tend to forget to activate this  
> profile when invoking Maven to build/deploy the artifact...
>
> Things would become easier if the release profile was activated  
> magically in
> the right moment. In my scenario, this "right moment" seems to be
> expressible by the condition
>  !${project.version}.endsWith("-SNAPSHOT")
> i.e. we have either snapshots or releases and Maven could detect  
> this just
> by looking at the project version.
>
> Therefore I would like to ask whether a new profile activator like
>  <nonSnapshot>
> to realize the above mentioned condition would be a wishworthy  
> feature or is
> generally not useful.
>
> Regards,
>
>
> Benjamin Bentmann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john
rss: http://feeds.feedburner.com/ejlife/john