Normalizing didn't work either.  I had to just change it to 1.6.0

-----Original Message-----
From: Nayan Hajratwala [mailto:na...@chikli.com]
Sent: Fri 10/8/2010 6:15 PM
To: Maven Users List
Subject: Re: maven 3.0
 
Perhaps you need to normalize your version string? Looks like it might not be 
taking kindly to the "_"

http://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html


On Oct 8, 2010, at 6:38 PM, Jason Chaffee wrote:

> This is what I have:
> 
>  <properties>
>     <java.version>1.6.0_20</java.version>
> </properties>
> 
> <rules>
>   <requireJavaVersion>
>       <version>[${java.version},)</version>
>       <message>Java version: ${java.version} is required</message>
>     </requireJavaVersion>
> </rules>
> 
> -----Original Message-----
> From: Nayan Hajratwala [mailto:na...@chikli.com] 
> Sent: Friday, October 08, 2010 3:29 PM
> To: Maven Users List
> Subject: Re: maven 3.0
> 
> I have this rule set up running under 3.0 and it works fine:
> 
> <rules>
>       <requireJavaVersion>
>               <version>1.6</version>
>       </requireJavaVersion>
> ...
> </rules>
> 
> What's the tag for the rule that is failing for you?
> 
> ---
> Nayan Hajratwala
> http://agileshrugged.com
> http://twitter.com/nhajratw
> 734.658.6032
> 
> On Oct 8, 2010, at 6:00 PM, Jason Chaffee wrote:
> 
>> So is there documentation on how I can configure that rule in 3.0?  I
>> looked around the site, couldn't find anything.
>> 
>> Thanks.
>> 
>> -----Original Message-----
>> From: Brian Fox [mailto:bri...@infinity.nu] 
>> Sent: Friday, October 08, 2010 2:53 PM
>> To: Maven Users List
>> Subject: Re: maven 3.0
>> 
>> It's telling you the rule doesn't work in 3.x, that's the current
>> state. 3.x has similar functionality built in
>> 
>> Sent from my iPad
>> 
>> On Oct 8, 2010, at 4:33 PM, Jason Chaffee <jchaf...@ebates.com> wrote:
>> 
>>> Does maven-enforcer-plugin with maven 3.0?  The same rules are
> working
>>> correctly in 2.0.
>>> 
>>> 
>>> 
>>> I have the following error:
>>> 
>>> 
>>> 
>>> [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce
> (enforce-versions)
>> @
>>> cbsp ---
>>> 
>>> [WARNING] This rule is not compatible with the current version of
>> Maven.
>>> The rule is not able to perform any checks.
>>> 
>>> [WARNING] Rule 1:
> org.apache.maven.plugins.enforcer.RequireJavaVersion
>>> failed with message:
>>> 
>>> Java version: 1.6.0_20 is required
>>> 
>>> [INFO] --------------------------------
>>> 
>>> 
>>> 
>>> Thanks.


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



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

Reply via email to