RE: try to compile from source, caught an error. What's wrong?

21 views
Skip to first unread message

Alex Earl

unread,
Sep 14, 2012, 9:33:50 AM9/14/12
to Erik Bernoth, jenkins...@googlegroups.com
What version of maven are you using?

Sent from my Windows Phone

From: Erik Bernoth
Sent: 9/14/2012 4:49 AM
To: jenkins...@googlegroups.com
Subject: try to compile from source, caught an error. What's wrong?

I got the following errors and can't find documentation about them. What am I doing wrong?

The error occurs is in Jenkins Core (compiled in the github jenkins root folder on master, with mvn -X clean install, more details after log paste):


[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/erikb85/coding/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,35] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<T,D> conforms to hudson.DescriptorExtensionList<T,D>
found   : <D>hudson.DescriptorExtensionList<T,D>
required: hudson.DescriptorExtensionList<T,D>
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ............................... SUCCESS [2.736s]
[INFO] Jenkins CLI ....................................... SUCCESS [5.360s]
[INFO] Jenkins core ...................................... FAILURE [27.288s]
[INFO] Maven Integration plugin .......................... SKIPPED
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.714s
[INFO] Finished at: Fri Sep 14 13:43:29 CEST 2012
[INFO] Final Memory: 45M/408M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project jenkins-core: Compilation failure
[ERROR] /home/erikb85/coding/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,35] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<T,D> conforms to hudson.DescriptorExtensionList<T,D>
[ERROR] found   : <D>hudson.DescriptorExtensionList<T,D>
[ERROR] required: hudson.DescriptorExtensionList<T,D>
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project jenkins-core: Compilation failure
/home/erikb85/coding/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,35] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<T,D> conforms to hudson.DescriptorExtensionList<T,D>
found   : <D>hudson.DescriptorExtensionList<T,D>
required: hudson.DescriptorExtensionList<T,D>

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    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:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    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:616)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
/home/erikb85/coding/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,35] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<T,D> conforms to hudson.DescriptorExtensionList<T,D>
found   : <D>hudson.DescriptorExtensionList<T,D>
required: hudson.DescriptorExtensionList<T,D>

    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more


It's not the first time I get this error. I tried the same thing weeks or months ago, also with the one or the other tag / branch (can't remember clearly anymore). So I think it's more of a system configuration issue then a bug. Just if it's important: I run a Ubuntu 12.04 with fairly up to date software.

$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

$ echo $JAVA_HOME # this one was manually set
/usr/lib/jvm/java-6-openjdk-amd64/jre/

Kind Regards
Erik
Reply all
Reply to author
Forward
0 new messages