So I guess the consensus is to remove M2_HOME from installation
instructions and doc the specific usage of M2_HOME at FAQ?

Thanks

-D

On Wed, Jan 28, 2015 at 9:02 AM, Baptiste Mathus <m...@batmat.net> wrote:

> @Robert yup my bad for being somehow unclear.
> The -1 was answering to the fact that M2_HOME may be useful in some cases.
>
> So I'm indeed +1 for removing it from the docs.
>
> Cheers
> Le 27 janv. 2015 19:14, "Robert Scholte" <rfscho...@apache.org> a écrit :
>
> > @Baptiste, so I guess your vote is actually +1 to remove it from
> > documentation, right?
> > M2_HOME is automatically set by the shell or batch script.
> >
> > The M2_HOME variable is here used to easily switch between different
> Maven
> > distributions. But with this name this can indeed cause
> > NoClassDefFoundErrors.
> > For the majority of the community it's not interesting to have multiple
> > versions of Maven and to switch often.
> > So this M2_HOME might be confusing. Instead just add
> > apache-maven-3.x.x/bin to your path.
> > You have my +1 for this change.
> >
> > Also, there's no need to add JAVA_HOME/bin to the path. Maven picks it up
> > as an environment variable, it won't scan the path searching for the java
> > executable. So I'd like to see that removed as well.
> >
> > thanks,
> > Robert
> >
> > Op Tue, 27 Jan 2015 10:04:28 +0100 schreef Baptiste Mathus <
> m...@batmat.net
> > >:
> >
> >  -1 it's a problematic variable, removing it is a good idea IMO, and
> >> changing mvn version is indeed just a matter of updating your path.
> >>
> >> I've been hit many a time by an updated PATH pointing to a different mvn
> >> version than the one referenced by M2_HOME, which ends with
> >> NoClassDefFoundError or something like that IIRC.
> >> That's why I've personally been advising maven users I encounter to
> never
> >> ever set that variable for years.
> >>
> >> Cheers
> >>
> >> 2015-01-27 7:19 GMT+01:00 Anders Hammar <and...@hammar.net>:
> >>
> >>  > I would still suggest to make sure its documented somewhere. I find
> it
> >>> > incredibly useful to just change M2_HOME to simply switch Maven
> >>> versions.
> >>> >
> >>>
> >>> +1, very useful but I guess it doesn't require the name M2_HOME.
> >>>
> >>> /Anders
> >>>
> >>> >
> >>> > manfred
> >>> >
> >>> > Mirko Friedenhagen wrote on 26.01.2015 21:40:
> >>> >
> >>> > > Dan, go ahead, I have not set this variable for years.
> >>> > >
> >>> > > Regards
> >>> > > Mirko
> >>> > > --
> >>> > > Sent from my mobile
> >>> > > On Jan 27, 2015 5:52 AM, "Dan Tran" <dant...@gmail.com> wrote:
> >>> > >
> >>> > >> Hi,
> >>> > >>
> >>> > >> Any objection  to remove the need to setup M2_HOME env variable at
> >>> maven
> >>> > >> download page?
> >>> > >>
> >>> > >>
> >>> > >> Thanks
> >>> > >>
> >>> > >> -Dan
> >>> > >>
> >>> > >>  https://jira.codehaus.org/browse/MNGSITE-223
> >>> > >>
> >>> > >
> >>> >
> >>> >
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> >>> > For additional commands, e-mail: dev-h...@maven.apache.org
> >>> >
> >>> >
> >>>
> >>> --
> >>> Baptiste <Batmat> MATHUS - http://batmat.net
> >>> Sauvez un arbre,
> >>> Mangez un castor !
> >>> nbsp;!
> >>>
> >>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> >
> >
>

Reply via email to