The rh-maven3x throws Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

Solution In Progress - Updated -

Issue

The mvn command throws the error:

    [root@be5592cc1e00 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

  • RHSCL rh-maven35
  • RHSCL rh-maven36

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In