Maven Installation - could not find org.codehaus.plexus.classoworlds.launcher.Launcher

时间:2017-06-15 09:58:25

标签: java apache maven

I have access to maven through Netbeans IDE, but am trying to install Maven 3.5.0 separate so I could install custom jar files into local .m2 repo through command line in cmd.

I have downloaded the zip file for Maven 3.5.0 from http://maven.apache.org/download.cgi

file : apache-maven-3.5.0-src.zip

When I tried executing the command

mvn -v

getting this error..

Error: Could not find or load main class org.codehaus.plexus.classwolrds.launcher.Launcher

I have already tried various environment variable settings such as

  • adding User PATH to the apache maven bin
  • adding System PATH to the apache maven bin
  • Setting MAVEN_HOME in System to apache maven folder
  • Setting M2_HOME and M3_HOME instead of MAVEN_HOME

finally when I tried to run mvn -v from apache maven bin direct

c:\Program Files\apache-maven-3.5.0\apache-maven\src\bin>mvn -v

still got the same issue, I figure there is a conflict in installation itself.

0 个答案:

没有答案