You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dan Tran <da...@gmail.com> on 2008/11/06 22:07:31 UTC

Activate a profile when project.version is not SNAPSHOT

is it possible?

-D

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


Re: Activate a profile when project.version is not SNAPSHOT

Posted by Stephen Connolly <st...@gmail.com>.
2008/11/10 Mark Hobson <ma...@gmail.com>

> 2008/11/8 Dan Tran <da...@gmail.com>:
> > http://jira.codehaus.org/browse/MNG-3826
>
> Actually, could we extend the requirements for this so that the
> profile activator took a regex expression that is matched against the
> project's version?  This would allow profiles to be activated for
> different stages of a project's iteration, e.g. major, minor, bug fix,
> etc.  Very handy for running clirr against a project when API changes
> are not allowed, for example.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
> +1000

Re: Activate a profile when project.version is not SNAPSHOT

Posted by Mark Hobson <ma...@gmail.com>.
2008/11/10 Mark Hobson <ma...@gmail.com>:
> Actually, could we extend the requirements for this so that the
> profile activator took a regex expression that is matched against the
> project's version?  This would allow profiles to be activated for
> different stages of a project's iteration, e.g. major, minor, bug fix,
> etc.  Very handy for running clirr against a project when API changes
> are not allowed, for example.

Updated issue accordingly:
http://jira.codehaus.org/browse/MNG-3826

Mark

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


Re: Activate a profile when project.version is not SNAPSHOT

Posted by Mark Hobson <ma...@gmail.com>.
2008/11/8 Dan Tran <da...@gmail.com>:
> http://jira.codehaus.org/browse/MNG-3826

Actually, could we extend the requirements for this so that the
profile activator took a regex expression that is matched against the
project's version?  This would allow profiles to be activated for
different stages of a project's iteration, e.g. major, minor, bug fix,
etc.  Very handy for running clirr against a project when API changes
are not allowed, for example.

Mark

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


Re: Activate a profile when project.version is not SNAPSHOT

Posted by Dan Tran <da...@gmail.com>.
http://jira.codehaus.org/browse/MNG-3826

On Fri, Nov 7, 2008 at 1:26 AM, Mark Hobson <ma...@gmail.com> wrote:
> I've been wanting this for a while but figured it'd be solved by
> custom profile activators, currently sitting in trunk:
>
> http://docs.codehaus.org/display/MAVEN/Custom+Profile+Activators
>
> Perhaps a new snapshot profile activator would be best for the
> short-term.  Have you raised an issue I could watch?
>
> Cheers,
>
> Mark
>
> 2008/11/6 Dan Tran <da...@gmail.com>:
>> sounds like a new feature to request for maven-profile component
>>
>> On Thu, Nov 6, 2008 at 1:35 PM, Stephen Connolly
>> <st...@gmail.com> wrote:
>>> AFAIK, No... the core does not support it and plugins cannot activate
>>> profiles as the active profiles have been decided before the validate phase
>>>
>>> 2008/11/6 Dan Tran <da...@gmail.com>
>>>
>>>> is it possible?
>>>>
>>>> -D
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Activate a profile when project.version is not SNAPSHOT

Posted by Mark Hobson <ma...@gmail.com>.
I've been wanting this for a while but figured it'd be solved by
custom profile activators, currently sitting in trunk:

http://docs.codehaus.org/display/MAVEN/Custom+Profile+Activators

Perhaps a new snapshot profile activator would be best for the
short-term.  Have you raised an issue I could watch?

Cheers,

Mark

2008/11/6 Dan Tran <da...@gmail.com>:
> sounds like a new feature to request for maven-profile component
>
> On Thu, Nov 6, 2008 at 1:35 PM, Stephen Connolly
> <st...@gmail.com> wrote:
>> AFAIK, No... the core does not support it and plugins cannot activate
>> profiles as the active profiles have been decided before the validate phase
>>
>> 2008/11/6 Dan Tran <da...@gmail.com>
>>
>>> is it possible?
>>>
>>> -D
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Activate a profile when project.version is not SNAPSHOT

Posted by Dan Tran <da...@gmail.com>.
sounds like a new feature to request for maven-profile component

On Thu, Nov 6, 2008 at 1:35 PM, Stephen Connolly
<st...@gmail.com> wrote:
> AFAIK, No... the core does not support it and plugins cannot activate
> profiles as the active profiles have been decided before the validate phase
>
> 2008/11/6 Dan Tran <da...@gmail.com>
>
>> is it possible?
>>
>> -D
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

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


Re: Activate a profile when project.version is not SNAPSHOT

Posted by Stephen Connolly <st...@gmail.com>.
AFAIK, No... the core does not support it and plugins cannot activate
profiles as the active profiles have been decided before the validate phase

2008/11/6 Dan Tran <da...@gmail.com>

> is it possible?
>
> -D
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>