What\'s the correct Maven environment variable name: MAVEN_HOME
, MVN_HOME
or M2_HOME
?
I\'ve found some details about M
We have M2_HOME,MAVEN_HOME,M3_HOME all are available in market
Previously M2_HOME is the only environment variable used by all as a standard.
But,due latest releases the MAVEN_Home came as standard but some old tools are still trying to find only M2_HOME
so we should have both M2_HOME,MAVEN_HOME to sustain with old and new tools.
M2_HOME can be used for both as well
I have solved same issue with following:
export M2_HOME=/usr/share/maven