You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Robinson <an...@gmail.com> on 2010/08/25 00:59:39 UTC

Activation based on maven version?

I would like to perform an activation based on maven version (for my
needs I would like to know maven > 2.0.8). Is there any way to do
this?

I noticed this has been filed and not resolved:
http://jira.codehaus.org/browse/MNG-4760

Basically I want to change a plugin to use a certain version for maven
2.2.1 but not 2.0.8.

Thanks,
Andrew

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


Re: Activation based on maven version?

Posted by Jason van Zyl <ja...@sonatype.com>.
We could probably doing it by injecting some properties with standard names in the short term.

You could look for mavenVersion:<whatever version format we want>

On Aug 24, 2010, at 11:32 PM, Anders Hammar wrote:

> No, this is not possible for the moment as far as I know (thus, my ticket).
> This might also be possible to implement without changing the pom schema,
> but there might be some clever solution.
> 
> /Anders
> On Wed, Aug 25, 2010 at 00:59, Andrew Robinson <andrew.rw.robinson@gmail.com
>> wrote:
> 
>> I would like to perform an activation based on maven version (for my
>> needs I would like to know maven > 2.0.8). Is there any way to do
>> this?
>> 
>> I noticed this has been filed and not resolved:
>> http://jira.codehaus.org/browse/MNG-4760
>> 
>> Basically I want to change a plugin to use a certain version for maven
>> 2.2.1 but not 2.0.8.
>> 
>> Thanks,
>> Andrew
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.

  -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)




Re: Activation based on maven version?

Posted by Anders Hammar <an...@hammar.net>.
No, this is not possible for the moment as far as I know (thus, my ticket).
This might also be possible to implement without changing the pom schema,
but there might be some clever solution.

/Anders
On Wed, Aug 25, 2010 at 00:59, Andrew Robinson <andrew.rw.robinson@gmail.com
> wrote:

> I would like to perform an activation based on maven version (for my
> needs I would like to know maven > 2.0.8). Is there any way to do
> this?
>
> I noticed this has been filed and not resolved:
> http://jira.codehaus.org/browse/MNG-4760
>
> Basically I want to change a plugin to use a certain version for maven
> 2.2.1 but not 2.0.8.
>
> Thanks,
> Andrew
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>