I have a git-bash installed on windows 10.
Maven command doesn't work.
When running mvn --version
the output is:
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
Maven is working in the regular windows command and in the intellij.
Moreover git-bash does recognize the location of maven and gives an accurate answer to which mvn
steps I've taken to try to resolve the issue with no success:
- removed the M2_HOME definition which was suggested here
- created a .bashrc and .bash_profile files with export command similar to `export PATH=/usr/local/apache-maven-3.x.y/bin:$PATH'
- reinstalled MAVEN a couple of times.
my JAVA_HOME is defined as C:\Program Files\Java\jdk1.8.0_261