I use a similar approach to Dan's. I just have
~/lib/apache-mavem-VERSION and symlink the mvn shell script to
~/bin/mvnVERSION_WITHOUT_DOTS.
Works flawlessly.
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/


On Tue, Jan 27, 2015 at 9:15 AM, Dan Tran <[email protected]> wrote:
> IMO, M2_HOME is no longer a required env starting 2.2.1, and there for it
> is used mainly for the exact use case that Manfred mentioned. I myself use
> a set a wrapper scripts ( mvn221, mvn311, etc)  since it is much easier to
> remember.
>
> I also got bitten a number of times where user had M2_HOME set, and install
> new version of Maven without reset M2_HOME, and fail mysteriously (support
> call)
>
> here is the link to Benson's issue, it is not conclusive
>
> http://maven.40175.n5.nabble.com/VOTE-Release-Apache-Maven-Release-Plugin-version-2-5-1-td5805498.html
>
>
>
> -Dan
>
>
>
>
>
> On Mon, Jan 26, 2015 at 10:47 PM, Kristian Rosenvold <
> [email protected]> wrote:
>
>> I seem to recall Benson ran into a case with either release or site
>> where it was still required no too long ago ?
>>
>> Kristian
>>
>>
>> 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]
>> >>
>> >>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

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

Reply via email to