Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23226

hudson.plugins.starteam does not compile on JDK 1.7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • starteam-plugin
    • None

      1 - Download the sourcecode of project
      2 - Import as a maven project inside eclipse
      3 - Run install -DskipTests

      Maybe this is related with JENKINS-10818, but I have no idea how to fix this.

      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Jenkins StarTeam plugin 0.6.14-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-enforcer-plugin:1.3.1:display-info (default) @ starteam —
      [INFO] Maven Version: 3.1.1
      [INFO] JDK Version: 1.7.0_51 normalized as: 1.7.0-51
      [INFO] OS Info: Arch: x86 Family: windows Name: windows 7 Version: 6.1
      [INFO]
      [INFO] — maven-localizer-plugin:1.8:generate (default) @ starteam —
      [INFO]
      [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ starteam —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 5 resources
      [INFO]
      [INFO] — maven-hpi-plugin:1.48:apt-compile (default-apt-compile) @ starteam —
      [WARNING] Error injecting: org.jvnet.hudson.maven.plugins.hpi.AptCompiler
      java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
      at java.lang.Class.getDeclaredConstructors(Class.java:1901)
      at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
      at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99)
      at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:653)
      at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:863)
      at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
      at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278)
      at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210)
      at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986)
      at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019)
      at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982)
      at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
      at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
      at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
      at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
      at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
      at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
      at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
      at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
      at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
      at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
      at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      at com.google.inject.Scopes$1$1.get(Scopes.java:59)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
      at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
      at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
      at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
      at java.util.AbstractMap.get(AbstractMap.java:182)
      at org.codehaus.plexus.compiler.manager.DefaultCompilerManager.getCompiler(DefaultCompilerManager.java:54)
      at org.jvnet.hudson.maven.plugins.hpi.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:260)
      at org.jvnet.hudson.maven.plugins.hpi.CompilerMojo.execute(CompilerMojo.java:111)
      at org.jvnet.hudson.maven.plugins.hpi.AptMojo.execute(AptMojo.java:24)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      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:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
      ... 60 more
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.341s
      [INFO] Finished at: Wed May 28 18:21:51 BRT 2014
      [INFO] Final Memory: 9M/24M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.jvnet.hudson.tools:maven-hpi-plugin:1.48:apt-compile (default-apt-compile) on project starteam: Execution default-apt-compile of goal org.jvnet.hudson.tools:maven-hpi-plugin:1.48:apt-compile failed: A required class was missing while executing org.jvnet.hudson.tools:maven-hpi-plugin:1.48:apt-compile: com/sun/mirror/apt/AnnotationProcessorFactory
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.jvnet.hudson.tools:maven-hpi-plugin:1.48
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/C:/Java/Maven-3.2.1/repository/org/jvnet/hudson/tools/maven-hpi-plugin/1.48/maven-hpi-plugin-1.48.jar
      [ERROR] urls[1] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/maven-archiver/2.0.1/maven-archiver-2.0.1.jar
      [ERROR] urls[2] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar
      [ERROR] urls[3] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
      [ERROR] urls[4] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/maven-jetty-plugin/6.1.1/maven-jetty-plugin-6.1.1.jar
      [ERROR] urls[5] = file:/C:/Java/Maven-3.2.1/repository/commons-el/commons-el/1.0/commons-el-1.0.jar
      [ERROR] urls[6] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jetty/6.1.1/jetty-6.1.1.jar
      [ERROR] urls[7] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jetty-util/6.1.1/jetty-util-6.1.1.jar
      [ERROR] urls[8] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/servlet-api-2.5/6.1.1/servlet-api-2.5-6.1.1.jar
      [ERROR] urls[9] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar
      [ERROR] urls[10] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jetty-plus/6.1.1/jetty-plus-6.1.1.jar
      [ERROR] urls[11] = file:/C:/Java/Maven-3.2.1/repository/javax/mail/mail/1.4/mail-1.4.jar
      [ERROR] urls[12] = file:/C:/Java/Maven-3.2.1/repository/javax/activation/activation/1.1/activation-1.1.jar
      [ERROR] urls[13] = file:/C:/Java/Maven-3.2.1/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar
      [ERROR] urls[14] = file:/C:/Java/Maven-3.2.1/repository/ant/ant/1.6.5/ant-1.6.5.jar
      [ERROR] urls[15] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jetty-naming/6.1.1/jetty-naming-6.1.1.jar
      [ERROR] urls[16] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jetty-management/6.1.1/jetty-management-6.1.1.jar
      [ERROR] urls[17] = file:/C:/Java/Maven-3.2.1/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar
      [ERROR] urls[18] = file:/C:/Java/Maven-3.2.1/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar
      [ERROR] urls[19] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jsp-2.1/6.1.1/jsp-2.1-6.1.1.jar
      [ERROR] urls[20] = file:/C:/Java/Maven-3.2.1/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar
      [ERROR] urls[21] = file:/C:/Java/Maven-3.2.1/repository/org/mortbay/jetty/jsp-api-2.1/6.1.1/jsp-api-2.1-6.1.1.jar
      [ERROR] urls[22] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.jar
      [ERROR] urls[23] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-4/maven-archetype-core-1.0-alpha-4.jar
      [ERROR] urls[24] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar
      [ERROR] urls[25] = file:/C:/Java/Maven-3.2.1/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar
      [ERROR] urls[26] = file:/C:/Java/Maven-3.2.1/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
      [ERROR] urls[27] = file:/C:/Java/Maven-3.2.1/repository/velocity/velocity/1.4/velocity-1.4.jar
      [ERROR] urls[28] = file:/C:/Java/Maven-3.2.1/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar
      [ERROR] urls[29] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-4/maven-archetype-creator-1.0-alpha-4.jar
      [ERROR] urls[30] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-4/maven-archetype-model-1.0-alpha-4.jar
      [ERROR] urls[31] = file:/C:/Java/Maven-3.2.1/repository/oro/oro/2.0.8/oro-2.0.8.jar
      [ERROR] urls[32] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
      [ERROR] urls[33] = file:/C:/Java/Maven-3.2.1/repository/junit/junit/3.8.1/junit-3.8.1.jar
      [ERROR] urls[34] = file:/C:/Java/Maven-3.2.1/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar
      [ERROR] urls[35] = file:/C:/Java/Maven-3.2.1/repository/javanettasks/javanettasks/1.0.23/javanettasks-1.0.23.jar
      [ERROR] urls[36] = file:/C:/Java/Maven-3.2.1/repository/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar
      [ERROR] urls[37] = file:/C:/Java/Maven-3.2.1/repository/javanettasks/httpunit/1.5.4/httpunit-1.5.4.jar
      [ERROR] urls[38] = file:/C:/Java/Maven-3.2.1/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar
      [ERROR] urls[39] = file:/C:/Java/Maven-3.2.1/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar
      [ERROR] urls[40] = file:/C:/Java/Maven-3.2.1/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar
      [ERROR] urls[41] = file:/C:/Java/Maven-3.2.1/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      [ERROR] urls[42] = file:/C:/Java/Maven-3.2.1/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
      [ERROR] urls[43] = file:/C:/Java/Maven-3.2.1/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      [ERROR] urls[44] = file:/C:/Java/Maven-3.2.1/repository/org/kohsuke/stapler/maven-stapler-plugin/1.12/maven-stapler-plugin-1.12.jar
      [ERROR] urls[45] = file:/C:/Java/Maven-3.2.1/repository/org/kohsuke/stapler/stapler/1.100/stapler-1.100.jar
      [ERROR] urls[46] = file:/C:/Java/Maven-3.2.1/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar
      [ERROR] urls[47] = file:/C:/Java/Maven-3.2.1/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
      [ERROR] urls[48] = file:/C:/Java/Maven-3.2.1/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
      [ERROR] urls[49] = file:/C:/Java/Maven-3.2.1/repository/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar
      [ERROR] urls[50] = file:/C:/Java/Maven-3.2.1/repository/org/jvnet/localizer/localizer/1.7/localizer-1.7.jar
      [ERROR] urls[51] = file:/C:/Java/Maven-3.2.1/repository/org/kohsuke/stapler/json-lib/2.1/json-lib-2.1-jdk15.jar
      [ERROR] urls[52] = file:/C:/Java/Maven-3.2.1/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
      [ERROR] urls[53] = file:/C:/Java/Maven-3.2.1/repository/net/sf/ezmorph/ezmorph/1.0.3/ezmorph-1.0.3.jar
      [ERROR] urls[54] = file:/C:/Java/Maven-3.2.1/repository/org/jvnet/tiger-types/1.1/tiger-types-1.1.jar
      [ERROR] urls[55] = file:/C:/Java/Maven-3.2.1/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar
      [ERROR] urls[56] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/reporting/maven-reporting-api/2.0.1/maven-reporting-api-2.0.1.jar
      [ERROR] urls[57] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-6/doxia-sink-api-1.0-alpha-6.jar
      [ERROR] urls[58] = file:/C:/Java/Maven-3.2.1/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
      [ERROR] urls[59] = file:/C:/Java/Maven-3.2.1/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar
      [ERROR] urls[60] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar
      [ERROR] urls[61] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar
      [ERROR] urls[62] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar
      [ERROR] urls[63] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar
      [ERROR] urls[64] = file:/C:/Java/Maven-3.2.1/repository/org/jvnet/maven-jellydoc-plugin/maven-jellydoc-plugin/1.3/maven-jellydoc-plugin-1.3.jar
      [ERROR] urls[65] = file:/C:/Java/Maven-3.2.1/repository/org/jvnet/maven-jellydoc-plugin/jellydoc-annotations/1.3/jellydoc-annotations-1.3.jar
      [ERROR] urls[66] = file:/C:/Java/Maven-3.2.1/repository/org/jvnet/maven-jellydoc-plugin/taglib-xml-writer/1.3/taglib-xml-writer-1.3.jar
      [ERROR] urls[67] = file:/C:/Java/Maven-3.2.1/repository/com/sun/xml/txw2/txw2/20090102/txw2-20090102.jar
      [ERROR] urls[68] = file:/C:/Java/Maven-3.2.1/repository/net/java/dev/textile-j/textile-j/2.2.864/textile-j-2.2.864.jar
      [ERROR] urls[69] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.1/maven-reporting-impl-2.0.1.jar
      [ERROR] urls[70] = file:/C:/Java/Maven-3.2.1/repository/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar
      [ERROR] urls[71] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-6/doxia-core-1.0-alpha-6.jar
      [ERROR] urls[72] = file:/C:/Java/Maven-3.2.1/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-6/doxia-site-renderer-1.0-alpha-6.jar
      [ERROR] urls[73] = file:/C:/Java/Maven-3.2.1/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import from realm ClassRealm[project>hudson.plugins:starteam:0.6.14-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
      [ERROR]
      [ERROR] -----------------------------------------------------: com.sun.mirror.apt.AnnotationProcessorFactory
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

            jan_ruzicka jan_ruzicka
            danielfcastro Daniel Castro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: