Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3712

[regression] java.lang.NoClassDefFoundError in maven-jaxb-schemagen-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 3.0-alpha-1
    • None
    • None
    • None

    Description

      When running maven-jaxb-schemagen-plugin with Maven 2.1-SNAPSHOT and latest 3.0-SNAPSHOT from trunk it fails with java.lang.NoClassDefFoundError. See attached test project and debug log from the build.

      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
      	at com.sun.tools.jxc.maven2.SchemaGenMojo.execute(SchemaGenMojo.java:143)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:638)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:521)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:288)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:172)
      	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
      	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:303)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
      	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
      	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:303)
      	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
      	at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
      

      Attachments

        1. generate-schema.zip
          4 kB
          Eugene Kuleshov
        2. build.log
          81 kB
          Eugene Kuleshov

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              eu Eugene Kuleshov
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: