The rh-maven3x throws Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
Issue
The mvn
command throws the error:
[root@localhost root]# /opt/rh/rh-maven35/root/usr/bin/mvn -version
/usr/bin/build-classpath: Could not find plexus-classworlds Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
Environment
- Red Hat Software Collection
- rh-maven35
- rh-maven36
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.