On 25 October 2013 11:26, Stephen Connolly <[email protected]>wrote:
> FTR, here is the standard requires I add to most of my projects: > > <requireMavenVersion> > > <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version> > This range lets through any maven version before 2.1.0. We have not issued a patch version of 2.1.0 to fix the GPG signature issue, but if we did, it will be innocent until proven guilty 2.2.0 is not allowed, but everything after it is > <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG > signatures and checksums respectively. > > </message> > > </requireMavenVersion> > > <requireMavenVersion> > > <version>(,3.0),[3.0.4,)</version> > Everything prior to 3.0 passes the settings.xml correctly 3.0.4 contains the fix and thus everything after will have the fix, or at least is innocent until proven guilty > <message>Maven 3.0 through 3.0.3 inclusive do not pass > correct settings.xml to Maven Release > > Plugin. > > </message> > > </requireMavenVersion> > > Hadoop are not as forgiving as me it would seem > I could give one single consolidated range, but then you don't get a nice message explaining why the specific versions are banned. > > > > On 25 October 2013 11:23, Stephen Connolly < > [email protected]> wrote: > >> 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] >>> >>> >> >
