October 7, 2016

Maven | M2_HOME Is Set To An Invalid Directory

I have followed couple of online article to set maven home path. Even after setting right path I was facing below issue.

ERROR: M2_HOME is set to an invalid directory.
M2_HOME = "C:\software\Maven\apache-maven-3.3.9"
Please set the M2_HOME variable in your environment to match the location of the Maven installation

Above issue is because of another version of maven installation at parallel location.


Once I removed older version from same location issue got resolved. I am not sure as of now how higher version installation having problems with older version existence. 


Post a Comment