java.lang.NoClassDefFoundError: org/apache/maven/model/io/xpp3/MavenXpp3Reader

Sonatype JIRA | Deleted User | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Running nexus-metadata-rebuild-tool-cli and providing the path to a repository results in an error: $ java -jar nexus-metadata-rebuild-tool-1.3.3-cli.jar -r m2repo Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/maven/model/io/xpp3/MavenXpp3Reader at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.updateMavenInfo(AbstractMetadataHelper.java:197) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:115) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:60) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.rebuildMetadata(DefaultMetadataRebuilder.java:46) at org.sonatype.nexus.tools.metadata.MetadataRebuildCli.rebuildMetadata(MetadataRebuildCli.java:123) at org.sonatype.nexus.tools.metadata.MetadataRebuildCli.invokePlexusComponent(MetadataRebuildCli.java:85) at org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:161) at org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:67) at org.sonatype.nexus.tools.metadata.MetadataRebuildCli.main(MetadataRebuildCli.java:66) Caused by: java.lang.ClassNotFoundException: org.apache.maven.model.io.xpp3.MavenXpp3Reader at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 15 more The error can be resolved by adding a dependency to the pom and rebuilding the tool: <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> </dependency>

    Sonatype JIRA | 8 years ago | Deleted User
    java.lang.NoClassDefFoundError: org/apache/maven/model/io/xpp3/MavenXpp3Reader
  2. 0

    Running nexus-metadata-rebuild-tool-cli and providing the path to a repository results in an error: $ java -jar nexus-metadata-rebuild-tool-1.3.3-cli.jar -r m2repo Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/maven/model/io/xpp3/MavenXpp3Reader at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.updateMavenInfo(AbstractMetadataHelper.java:197) at org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:115) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:60) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69) at org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.rebuildMetadata(DefaultMetadataRebuilder.java:46) at org.sonatype.nexus.tools.metadata.MetadataRebuildCli.rebuildMetadata(MetadataRebuildCli.java:123) at org.sonatype.nexus.tools.metadata.MetadataRebuildCli.invokePlexusComponent(MetadataRebuildCli.java:85) at org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:161) at org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:67) at org.sonatype.nexus.tools.metadata.MetadataRebuildCli.main(MetadataRebuildCli.java:66) Caused by: java.lang.ClassNotFoundException: org.apache.maven.model.io.xpp3.MavenXpp3Reader at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 15 more The error can be resolved by adding a dependency to the pom and rebuilding the tool: <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> </dependency>

    Sonatype JIRA | 8 years ago | Deleted User
    java.lang.NoClassDefFoundError: org/apache/maven/model/io/xpp3/MavenXpp3Reader
  3. 0

    Jar file fails to run, extracted class runs fine

    Stack Overflow | 4 years ago | CoderG
    java.lang.ClassNotFoundException: ccjni.DeviceManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using a jar in a Java project?

    Stack Overflow | 8 years ago | dm76
    java.lang.NoClassDefFoundError: hello/Hello
  6. 0

    Create JAR file in Java & Eclipse | Update JAR file in Java

    viralpatel.net | 9 months ago
    java.lang.NoClassDefFoundError: javax/mail/Address

    12 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.apache.maven.model.io.xpp3.MavenXpp3Reader

      at java.net.URLClassLoader$1.run()
    2. Java RT
      ClassLoader.loadClassInternal
      1. java.net.URLClassLoader$1.run(URLClassLoader.java:217)
      2. java.security.AccessController.doPrivileged(Native Method)
      3. java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      4. java.lang.ClassLoader.loadClass(ClassLoader.java:323)
      5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
      6. java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      7. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
      7 frames
    3. ${project.groupId}:${project.artifactId}
      AbstractMetadataHelper.processFile
      1. org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.updateMavenInfo(AbstractMetadataHelper.java:197)
      2. org.sonatype.nexus.proxy.maven.metadata.AbstractMetadataHelper.processFile(AbstractMetadataHelper.java:115)
      2 frames
    4. org.sonatype.nexus
      MetadataRebuildCli.invokePlexusComponent
      1. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:60)
      2. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69)
      3. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69)
      4. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69)
      5. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69)
      6. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69)
      7. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.walk(DefaultMetadataRebuilder.java:69)
      8. org.sonatype.nexus.tools.metadata.DefaultMetadataRebuilder.rebuildMetadata(DefaultMetadataRebuilder.java:46)
      9. org.sonatype.nexus.tools.metadata.MetadataRebuildCli.rebuildMetadata(MetadataRebuildCli.java:123)
      10. org.sonatype.nexus.tools.metadata.MetadataRebuildCli.invokePlexusComponent(MetadataRebuildCli.java:85)
      10 frames
    5. Plexus CLI
      AbstractCli.execute
      1. org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:161)
      2. org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:67)
      2 frames
    6. org.sonatype.nexus
      MetadataRebuildCli.main
      1. org.sonatype.nexus.tools.metadata.MetadataRebuildCli.main(MetadataRebuildCli.java:66)
      1 frame