Maven 3.6.2 fails with NoClassDefFoundError

Solution Verified - Updated -

Issue

Executing maven v3.6.2 results in a NoClassDefFoundError

^[[1mApache Maven 3.6.2 (Red Hat 3.6.2-4)^[[m
Maven home: /usr/share/maven
Java version: 1.8.0_262, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el8_2.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.18.0-193.14.3.el8_2.x86_64", arch: "amd64", family: "unix"
...

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/Xpp3DomBuilder$InputLocationBuilder
        at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:108)
...

Environment

  • Red Hat Enterprise Linux 8
  • Maven 3.6.2-3 and later.
  • OpenJDK 8

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