The minimal requirements (at least for Windows) are:
apache-maven-x\bin must be on the "Path"
JAVA_HOME must be set
it is not required to add M2_HOME, mvn.bat will do that for you.
JAVA_HOME is not required on the Path, Maven will always use the JAVA_HOME
value.
Robert
Op Fri, 28 Jun 2013 15
AFAIR it is the class worlds config that actually pulls out the environment
variable to set up the classpath, so the only thing that would happen is
you would be using a different class worlds from the one in the home... In
any case M2_HOME trumps MAVEN_HOME so if the scripts were not updated then
Stephen Connolly wrote:
> MAVEN_HOME is for Maven.
>
> If M2_HOME is set, then that will be used by Maven 2+ and MAVEN_HOME will
> be ignored.
Well, then download M305 and have a look into the start scripts. MAVEN_HOME
is nowhere found, while M2_HOME is anywhere used.
> When Maven 3 was being
MAVEN_HOME is for Maven.
If M2_HOME is set, then that will be used by Maven 2+ and MAVEN_HOME will
be ignored.
When Maven 3 was being initially released we were going to drop M2_HOME
completely, but decided to keep support for it.
Going forward, I would just pick MAVEN_HOME and ensure M2_HOME is
Nayana ABREU wrote:
> In relation to the installation of Maven on Windows, when I add the
> Variable in the Systems Variables I saw some examples in which users
> type M2_HOME for the variable name, is it a problem if I typed
> *MAVEN_HOME*for variable name? In summary, I want to know if the n
[hidden email] <http://user/SendEmail.jtp?type=node&node=5760911&i=0>
> Phone: 662-801-6349
> Skype: nayanexbourdon
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://maven
On 27/06/2013 12:45 PM, Nayana ABREU wrote:
In relation to the installation of Maven on Windows, when I add the
Variable in the Systems Variables I saw some examples in which users
type M2_HOME for the variable name, is it a problem if I typed
*MAVEN_HOME*for variable name? In summary, I want
iirc MAVEN_HOME was the convention for Maven 1; I don't believe it should
matter. I used a standard installer (MacPorts) and I have no such variable.
OTOH, if you are going to be working with somebody else, it would probably be
best to stick with the conventional names.
On Jun 27, 2013, at 12:45
In relation to the installation of Maven on Windows, when I add the
Variable in the Systems Variables I saw some examples in which users
type M2_HOME for the variable name, is it a problem if I typed
*MAVEN_HOME*for variable name? In summary, I want to know if the name
for variable name
is an a