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@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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content