 <p>%JAVA_HOME%\bin;<strong>%M2%</strong>;C:\Windows\Microsoft.NET\Framework\v4.0.30319;D:\sytemapps\Python27;%<strong>M2</strong>%;%JAVA_HOME%/bin;C:\Developer\Android\sdk\platform-tools\;%GRADLE_HOME%\bin;%DEVKIT_HOME%\bin;%DEVKIT_HOME%\mingw\bin</p> <p>change to </p> <p>%JAVA_HOME%\bin;<strong>%M2_HOME%</strong>;C:\Windows\Microsoft.NET\Framework\v4.0.30319;D:\sytemapps\Python27;%<strong>M2_HOME</strong>%;%JAVA_HOME%/bin;C:\Developer\Android\sdk\platform-tools\;%GRADLE_HOME%\bin;%DEVKIT_HOME%\bin;%DEVKIT_HOME%\mingw\bin</p> <p>Issue might be becuase of environment variable path name. For maven environment varibale name should be <strong>M2_HOME</strong> or <strong>MAVEN_HOME</strong>(for older version)</p>