maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rushikeshgaradade@gmail.com" <rushikeshgarad...@gmail.com>
Subject Re: Detected Maven Version: 2.2.1 is not in the allowed range [3.0.2,)
Date Fri, 25 Oct 2013 20:37:39 GMT
Thank You Sir,
i was there with maven2...now i have installed 3.X version.
Thank you for help


On Fri, Oct 25, 2013 at 4:01 PM, stephenconnolly [via Maven] <
ml-node+s40175n5773808h3@n5.nabble.com> wrote:

> On 25 October 2013 11:26, Stephen Connolly
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5773808&i=0>>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 <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5773808&i=1>>
> 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, [hidden email]<http://user/SendEmail.jtp?type=node&node=5773808&i=2><
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=5773808&i=3>>
> 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: [hidden email]<http://user/SendEmail.jtp?type=node&node=5773808&i=4>
> >>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5773808&i=5>
> >>>
> >>>
> >>
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://maven.40175.n5.nabble.com/Detected-Maven-Version-2-2-1-is-not-in-the-allowed-range-3-0-2-tp5773798p5773808.html
>  To unsubscribe from Detected Maven Version: 2.2.1 is not in the allowed
> range [3.0.2,), click here<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5773798&code=cnVzaGlrZXNoZ2FyYWRhZGVAZ21haWwuY29tfDU3NzM3OTh8MjAyMDA0MjI0NA==>
> .
> NAML<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
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-tp5773798p5773844.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message