The people who write the software you are trying to build have decreed that
you need to use a recent version of Maven in order to build correctly. They
have defined an enforcer rule to enforce their minimum maven version
requirement. The enforcer rule has kicked in and failed the build early
because you are using maven version 2.2.1 and the allowed range is [3.0.2,)

Maven has a version range syntax. briefly

[x] means only version x and no other version

[x,y] means any version >=x and <=y

[x,y) means any version >=x and <y

(x,y] means any version >x and <=y

(x,y) means any version >x and <y

(,x] means any version <=x

[x,) means any version >=x

(,x) means any version <x

(x,) means any version >x


HTH


On 25 October 2013 07:46, [email protected] <
[email protected]> wrote:

> Hi,
>      i am very new to maven. I am trying to import hadoop source code into
> eclipse. and for this i followed this link:
> http://wiki.apache.org/hadoop/EclipseEnvironment
>
> in this there are 2 mvn commands:
>  $ mvn install -DskipTests
> $ mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
>
>
> during both command execution i came across following error
>
> [INFO] [enforcer:enforce {execution: default}]
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion
> failed with message:
> *Detected Maven Version: 2.2.1 is not in the allowed range [3.0.2,).*
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Some Enforcer rules have failed. Look above for specific messages
> explaining why the rule failed.
>
>
> Highlighted one is main area of interest which i didn't understood.(i have
> installed maven2) Please can u help me in solving above query.
>
> Thank You
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Detected-Maven-Version-2-2-1-is-not-in-the-allowed-range-3-0-2-tp5773798.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to