+1

I think you need to deprecate something like that and not just yank it, but 
removing the doco is a good first step.  I have M2_HOME set even through I 
don't technically need it but that's how I switch versions of Maven. I have 
M2_HOME set, it's a symlink, and i just flip the symlink to change versions of 
Maven. That's probably my quirky way of flipping versions but I've probably had 
that in there for 10 years.

On Jan 28, 2015, at 12:57 PM, Dan Tran <[email protected]> wrote:

> 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 <[email protected]> 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" <[email protected]> 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 <
>> [email protected]
>>>> :
>>> 
>>> -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 <[email protected]>:
>>>> 
>>>>> 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" <[email protected]> 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: [email protected]
>>>>>> For additional commands, e-mail: [email protected]
>>>>>> 
>>>>>> 
>>>>> 
>>>>> --
>>>>> Baptiste <Batmat> MATHUS - http://batmat.net
>>>>> Sauvez un arbre,
>>>>> Mangez un castor !
>>>>> nbsp;!
>>>>> 
>>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
>>> 
>> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder, Takari and Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------

Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.

 -- Eric Hoffer, Reflections on the Human Condition













---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to