org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory

Jenkins JIRA | jieryn | 7 years ago
  1. 0

    Recent (1.360+) Hudson seems to depend on apt-maven-plugin and other tools/* which hard code requirements (via import) on com.sun.mirror.apt packages and classes. This excludes all but Sun JDKs from compiling anything in Hudson, including plugins. + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - hudson.plugins:testing:hpi:1.0-SNAPSHOT [INFO] task-segment: [hpi:run] [INFO] ------------------------------------------------------------------------ [INFO] Preparing hpi:run [INFO] [enforcer:display-info {execution: default}] [INFO] Maven Version: 2.2.1 [INFO] JDK Version: 1.6.0 normalized as: 1.6.0 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.14 [INFO] [localizer:generate {execution: default}] [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources ----------------------------------------------------- this realm = app0.child-container[org.jvnet.hudson.tools:maven-hpi-plugin:1.52] urls[0] = file:/home/jesse/.m2/repository/org/jvnet/hudson/tools/maven-hpi-plugin/1.52/maven-hpi-plugin-1.52.jar urls[1] = file:/home/jesse/.m2/repository/org/apache/maven/maven-archiver/2.0.1/maven-archiver-2.0.1.jar urls[2] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar urls[3] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar urls[4] = file:/home/jesse/.m2/repository/org/mortbay/jetty/maven-jetty-plugin/6.1.1/maven-jetty-plugin-6.1.1.jar urls[5] = file:/home/jesse/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar urls[6] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty/6.1.1/jetty-6.1.1.jar urls[7] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-util/6.1.1/jetty-util-6.1.1.jar urls[8] = file:/home/jesse/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.1/servlet-api-2.5-6.1.1.jar urls[9] = file:/home/jesse/.m2/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar urls[10] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-plus/6.1.1/jetty-plus-6.1.1.jar urls[11] = file:/home/jesse/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar urls[12] = file:/home/jesse/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar urls[13] = file:/home/jesse/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar urls[14] = file:/home/jesse/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[15] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-naming/6.1.1/jetty-naming-6.1.1.jar urls[16] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-management/6.1.1/jetty-management-6.1.1.jar urls[17] = file:/home/jesse/.m2/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar urls[18] = file:/home/jesse/.m2/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar urls[19] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.1/jsp-2.1-6.1.1.jar urls[20] = file:/home/jesse/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar urls[21] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.1/jsp-api-2.1-6.1.1.jar urls[22] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.jar urls[23] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-4/maven-archetype-core-1.0-alpha-4.jar urls[24] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar urls[25] = file:/home/jesse/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar urls[26] = file:/home/jesse/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar urls[27] = file:/home/jesse/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar urls[28] = file:/home/jesse/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar urls[29] = file:/home/jesse/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[30] = file:/home/jesse/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[31] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-4/maven-archetype-creator-1.0-alpha-4.jar urls[32] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-4/maven-archetype-model-1.0-alpha-4.jar urls[33] = file:/home/jesse/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[34] = file:/home/jesse/.m2/repository/javanettasks/javanettasks/1.0.24/javanettasks-1.0.24.jar urls[35] = file:/home/jesse/.m2/repository/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar urls[36] = file:/home/jesse/.m2/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar urls[37] = file:/home/jesse/.m2/repository/javanettasks/httpunit/1.5.4/httpunit-1.5.4.jar urls[38] = file:/home/jesse/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar urls[39] = file:/home/jesse/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar urls[40] = file:/home/jesse/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[41] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/maven-stapler-plugin/1.12/maven-stapler-plugin-1.12.jar urls[42] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/stapler/1.100/stapler-1.100.jar urls[43] = file:/home/jesse/.m2/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar urls[44] = file:/home/jesse/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[45] = file:/home/jesse/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[46] = file:/home/jesse/.m2/repository/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar urls[47] = file:/home/jesse/.m2/repository/org/jvnet/localizer/localizer/1.7/localizer-1.7.jar urls[48] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/json-lib/2.1/json-lib-2.1-jdk15.jar urls[49] = file:/home/jesse/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar urls[50] = file:/home/jesse/.m2/repository/net/sf/ezmorph/ezmorph/1.0.3/ezmorph-1.0.3.jar urls[51] = file:/home/jesse/.m2/repository/org/jvnet/tiger-types/1.1/tiger-types-1.1.jar urls[52] = file:/home/jesse/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar urls[53] = file:/home/jesse/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar urls[54] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar urls[55] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar urls[56] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar urls[57] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar urls[58] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/maven-jellydoc-plugin/1.3/maven-jellydoc-plugin-1.3.jar urls[59] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/jellydoc-annotations/1.3/jellydoc-annotations-1.3.jar urls[60] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/taglib-xml-writer/1.3/taglib-xml-writer-1.3.jar urls[61] = file:/home/jesse/.m2/repository/com/sun/xml/txw2/txw2/20090102/txw2-20090102.jar urls[62] = file:/home/jesse/.m2/repository/net/java/dev/textile-j/textile-j/2.2.864/textile-j-2.2.864.jar urls[63] = file:/home/jesse/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.1/maven-reporting-impl-2.0.1.jar urls[64] = file:/home/jesse/.m2/repository/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar urls[65] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-6/doxia-core-1.0-alpha-6.jar urls[66] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-6/doxia-site-renderer-1.0-alpha-6.jar urls[67] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 this realm = plexus.core urls[0] = file:/usr/share/maven-bin-2.2/lib/maven-2.2.1-uber.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 21 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652) ... 23 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 25 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 28 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilerManager in object of type org.jvnet.hudson.maven.plugins.hpi.AptMojo because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.manager.CompilerManager', roleHint='null', fieldName='compilerManager'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 30 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.manager.CompilerManager', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) ... 34 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 35 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 38 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilers in object of type org.codehaus.plexus.compiler.manager.DefaultCompilerManager because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.Compiler', roleHint='null', fieldName='compilers'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 40 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.Compilerstapler-apt', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103) ... 44 more Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'org.codehaus.plexus.compiler.Compiler', implementation: 'org.kohsuke.stapler.AptCompiler', role hint: 'stapler-apt' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 47 more Caused by: java.lang.NoClassDefFoundError: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1325) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44) ... 51 more Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:385) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:232) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:619) ... 57 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Wed Jun 02 16:19:07 EDT 2010 [INFO] Final Memory: 54M/166M [INFO] ------------------------------------------------------------------------

    Jenkins JIRA | 7 years ago | jieryn
    org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory
  2. 0

    Recent (1.360+) Hudson seems to depend on apt-maven-plugin and other tools/* which hard code requirements (via import) on com.sun.mirror.apt packages and classes. This excludes all but Sun JDKs from compiling anything in Hudson, including plugins. + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - hudson.plugins:testing:hpi:1.0-SNAPSHOT [INFO] task-segment: [hpi:run] [INFO] ------------------------------------------------------------------------ [INFO] Preparing hpi:run [INFO] [enforcer:display-info {execution: default}] [INFO] Maven Version: 2.2.1 [INFO] JDK Version: 1.6.0 normalized as: 1.6.0 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.14 [INFO] [localizer:generate {execution: default}] [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources ----------------------------------------------------- this realm = app0.child-container[org.jvnet.hudson.tools:maven-hpi-plugin:1.52] urls[0] = file:/home/jesse/.m2/repository/org/jvnet/hudson/tools/maven-hpi-plugin/1.52/maven-hpi-plugin-1.52.jar urls[1] = file:/home/jesse/.m2/repository/org/apache/maven/maven-archiver/2.0.1/maven-archiver-2.0.1.jar urls[2] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar urls[3] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar urls[4] = file:/home/jesse/.m2/repository/org/mortbay/jetty/maven-jetty-plugin/6.1.1/maven-jetty-plugin-6.1.1.jar urls[5] = file:/home/jesse/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar urls[6] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty/6.1.1/jetty-6.1.1.jar urls[7] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-util/6.1.1/jetty-util-6.1.1.jar urls[8] = file:/home/jesse/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.1/servlet-api-2.5-6.1.1.jar urls[9] = file:/home/jesse/.m2/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar urls[10] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-plus/6.1.1/jetty-plus-6.1.1.jar urls[11] = file:/home/jesse/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar urls[12] = file:/home/jesse/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar urls[13] = file:/home/jesse/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar urls[14] = file:/home/jesse/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[15] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-naming/6.1.1/jetty-naming-6.1.1.jar urls[16] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-management/6.1.1/jetty-management-6.1.1.jar urls[17] = file:/home/jesse/.m2/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar urls[18] = file:/home/jesse/.m2/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar urls[19] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.1/jsp-2.1-6.1.1.jar urls[20] = file:/home/jesse/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar urls[21] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.1/jsp-api-2.1-6.1.1.jar urls[22] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.jar urls[23] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-4/maven-archetype-core-1.0-alpha-4.jar urls[24] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar urls[25] = file:/home/jesse/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar urls[26] = file:/home/jesse/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar urls[27] = file:/home/jesse/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar urls[28] = file:/home/jesse/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar urls[29] = file:/home/jesse/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[30] = file:/home/jesse/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[31] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-4/maven-archetype-creator-1.0-alpha-4.jar urls[32] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-4/maven-archetype-model-1.0-alpha-4.jar urls[33] = file:/home/jesse/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[34] = file:/home/jesse/.m2/repository/javanettasks/javanettasks/1.0.24/javanettasks-1.0.24.jar urls[35] = file:/home/jesse/.m2/repository/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar urls[36] = file:/home/jesse/.m2/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar urls[37] = file:/home/jesse/.m2/repository/javanettasks/httpunit/1.5.4/httpunit-1.5.4.jar urls[38] = file:/home/jesse/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar urls[39] = file:/home/jesse/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar urls[40] = file:/home/jesse/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[41] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/maven-stapler-plugin/1.12/maven-stapler-plugin-1.12.jar urls[42] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/stapler/1.100/stapler-1.100.jar urls[43] = file:/home/jesse/.m2/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar urls[44] = file:/home/jesse/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[45] = file:/home/jesse/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[46] = file:/home/jesse/.m2/repository/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar urls[47] = file:/home/jesse/.m2/repository/org/jvnet/localizer/localizer/1.7/localizer-1.7.jar urls[48] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/json-lib/2.1/json-lib-2.1-jdk15.jar urls[49] = file:/home/jesse/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar urls[50] = file:/home/jesse/.m2/repository/net/sf/ezmorph/ezmorph/1.0.3/ezmorph-1.0.3.jar urls[51] = file:/home/jesse/.m2/repository/org/jvnet/tiger-types/1.1/tiger-types-1.1.jar urls[52] = file:/home/jesse/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar urls[53] = file:/home/jesse/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar urls[54] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar urls[55] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar urls[56] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar urls[57] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar urls[58] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/maven-jellydoc-plugin/1.3/maven-jellydoc-plugin-1.3.jar urls[59] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/jellydoc-annotations/1.3/jellydoc-annotations-1.3.jar urls[60] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/taglib-xml-writer/1.3/taglib-xml-writer-1.3.jar urls[61] = file:/home/jesse/.m2/repository/com/sun/xml/txw2/txw2/20090102/txw2-20090102.jar urls[62] = file:/home/jesse/.m2/repository/net/java/dev/textile-j/textile-j/2.2.864/textile-j-2.2.864.jar urls[63] = file:/home/jesse/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.1/maven-reporting-impl-2.0.1.jar urls[64] = file:/home/jesse/.m2/repository/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar urls[65] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-6/doxia-core-1.0-alpha-6.jar urls[66] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-6/doxia-site-renderer-1.0-alpha-6.jar urls[67] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 this realm = plexus.core urls[0] = file:/usr/share/maven-bin-2.2/lib/maven-2.2.1-uber.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 21 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652) ... 23 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 25 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 28 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilerManager in object of type org.jvnet.hudson.maven.plugins.hpi.AptMojo because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.manager.CompilerManager', roleHint='null', fieldName='compilerManager'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 30 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.manager.CompilerManager', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) ... 34 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 35 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 38 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilers in object of type org.codehaus.plexus.compiler.manager.DefaultCompilerManager because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.Compiler', roleHint='null', fieldName='compilers'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 40 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.Compilerstapler-apt', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103) ... 44 more Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'org.codehaus.plexus.compiler.Compiler', implementation: 'org.kohsuke.stapler.AptCompiler', role hint: 'stapler-apt' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 47 more Caused by: java.lang.NoClassDefFoundError: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1325) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44) ... 51 more Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:385) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:232) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:619) ... 57 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Wed Jun 02 16:19:07 EDT 2010 [INFO] Final Memory: 54M/166M [INFO] ------------------------------------------------------------------------

    Jenkins JIRA | 7 years ago | jieryn
    org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory
  3. 0

    How to deploy with fabric8 on Jboss Fuse Openshift

    Stack Overflow | 2 years ago | dieh1984
    org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'io.fabric8:fabric8-maven-plugin:1.2.0.redhat-046:deploy': Unable to load the mojo 'io.fabric8:fabric8-maven-plugin:1.2.0.redhat-046:deploy' in the plugin 'io.fabric8:fabric8-maven-plugin'. A required class is missing: org/apache/maven/repository/legacy/metadata/ArtifactMetadataRetrievalException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven compiler error

    Stack Overflow | 4 years ago | Gandalf StormCrow
    org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile': Unable to load the mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' in the plugin 'org.apache.maven.plugins:maven-compiler-plugin'. A required class is missing: org/codehaus/plexus/compiler/manager/NoSuchCompilerException
  6. 0

    GitHub comment 17#1421009

    GitHub | 5 years ago | garretwilson
    org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'de.saumya.mojo:gem-maven-plugin:0.25.1:exec': Unable to load the mojo 'de.saumya.mojo:gem-maven-plugin:0.25.1:exec' in the plugin 'de.saumya.mojo:gem-maven-plugin'. A required class is missing: org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest

  1. andyglick 2 times, last 2 days ago
  2. richard77 1 times, last 5 days ago
  3. musketyr 2 times, last 5 days ago
  4. michallos 2 times, last 5 days ago
  5. batwalrus76 2 times, last 6 days ago
67 more registered users
28 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

    com.sun.mirror.apt.AnnotationProcessorFactory

    at java.lang.ClassNotFoundException.<init>()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
    2. java.net.URLClassLoader.findClass(URLClassLoader.java:385)
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:653)
    3 frames
  3. Plexus
    RealmClassLoader.loadClass
    1. org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
    2. org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:232)
    3. org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
    4. org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
    4 frames
  4. Java RT
    Class.newInstance
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:619)
    2. java.lang.J9VMInternals.verifyImpl(Native Method)
    3. java.lang.J9VMInternals.verify(J9VMInternals.java:72)
    4. java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    5. java.lang.J9VMInternals.newInstanceImpl(Native Method)
    6. java.lang.Class.newInstance(Class.java:1325)
    6 frames
  5. Plexus
    DefaultPlexusContainer.lookup
    1. org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
    2. org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
    3. org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
    4. org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
    5. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
    6. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
    7. org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390)
    8. org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103)
    9. org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
    10. org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
    11. org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
    12. org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
    13. org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
    14. org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
    15. org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
    16. org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
    17. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
    18. org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
    19. org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
    20. org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
    21. org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
    22. org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
    23. org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
    24. org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
    25. org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
    26. org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
    27. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
    28. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
    28 frames
  6. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
    2. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
    2 frames
  7. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
    7. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
    8. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    9. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    10. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    11. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    12. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    12 frames
  8. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    1 frame
  9. org.apache.maven
    CompatibleMain.main
    1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:600)
    4 frames
  11. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames