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

After installing maven in centos7 server I was getting following error while checking using mvn –version command.

Spend hours searching the issue but was unable to find a right fix.

Atlast realized that Instead of binary download I mistakenly downloaded from the source.

You need to download the binary file.

wget http://mirrors.estointernet.in/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz

Leave a comment