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:38:44 +0200 schreef Jörg Schaible <[email protected]>:

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 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 unset as
we do not have M3_HOME nor will we have M4_HOME so we will be reclaiming
MAVEN_HOME as the recommendation

Nevertheless, you still don't have to set it. It's done automatically in the
start script.

- Jörg


---------------------------------------------------------------------
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