Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [hudson-dev] Hudson core build failure

Naveen,

I have

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)

I don't have problem with compiling either. You might want to upgrade your JDK to 1.6.0_31.

- Winston

On 4/21/12 2:32 AM, Naveen Babu Ede wrote:
Hi Stuart,

Thanks for the response.
I am using
    java version "1.6.0_26"
   Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
   Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)

Meanwhile, I tried to build by importing the project into eclispe+m2e. It is successful. But, when i invoke "mvn clean install" from the shell, i get the errors  i mentioned.

Thanks,
Naveen


2012/4/21 Stuart McCulloch <mcculls@xxxxxxxxx>
On 21 Apr 2012, at 09:24, Naveen Babu Ede wrote:

Hi,

I am trying to build hudson core and got the following compilation error.
I am using Ubuntu 11.10, maven 3.0.4.

Which edition (OpenJDK?) and version of the JDK are you compiling with? I can compile core with Oracle's 1.6.0_31 JDK (and previously compiled it with 1.6.0_29)

Appreciate any help.

Thank you!
-Naveen


[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Build.java:[73,16] types hudson.model.AbstractBuild<P,B> and hudson.model.AbstractBuild<P,B> are incompatible; both define getParent(), but with unrelated return types
[ERROR] MarkupFormatterDescriptor.java:[55,53] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,D> conforms to hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,hudson.markup.MarkupFormatterDescriptor>
found   : <D>hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,D>
required: hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,hudson.markup.MarkupFormatterDescriptor>
[ERROR] MatrixBuild.java:[53,7] types hudson.model.AbstractBuild<hudson.matrix.MatrixProject,hudson.matrix.MatrixBuild> and hudson.model.AbstractBuild<hudson.matrix.MatrixProject,hudson.matrix.MatrixBuild> are incompatible; both define getParent(), but with unrelated return types
[ERROR] NativeUnixSupport.java:[48,53] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,D> conforms to hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,hudson.model.Descriptor<hudson.util.jna.NativeUnixSupport>>
found   : <D>hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,D>
required: hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,hudson.model.Descriptor<hudson.util.jna.NativeUnixSupport>>
[ERROR] ComputerConnectorDescriptor.java:[29,53] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,D> conforms to hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,hudson.slaves.ComputerConnectorDescriptor>
found   : <D>hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,D>
required: hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,hudson.slaves.ComputerConnectorDescriptor>
[ERROR] FreeStyleBuild.java:[28,7] types hudson.model.Build<hudson.model.FreeStyleProject,hudson.model.FreeStyleBuild> and hudson.model.Build<hudson.model.FreeStyleProject,hudson.model.FreeStyleBuild> are incompatible; both define getParent(), but with unrelated return types
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Hudson Parent ..................................... SUCCESS [0.925s]
[INFO] Hudson ............................................ SUCCESS [0.867s]
[INFO] Hudson :: Test Utilities .......................... SUCCESS [2.870s]
[INFO] Hudson :: Common Utilities ........................ SUCCESS [4.811s]
[INFO] Hudson :: Remoting Layer .......................... SUCCESS [19.507s]
[INFO] Hudson :: CLI ..................................... SUCCESS [3.277s]
[INFO] Hudson :: Core .................................... FAILURE [54.387s]
[INFO] Hudson :: Inject (JSR-330 Strategy) ............... SKIPPED
[INFO] Hudson :: Plugin Utilities ........................ SKIPPED
[INFO] Hudson :: Service ................................. SKIPPED
[INFO] Hudson :: jetty-war-executable .................... SKIPPED
[INFO] Hudson :: War ..................................... SKIPPED
[INFO] Hudson :: Test Framework .......................... SKIPPED
[INFO] Hudson :: Plugin Parent POM ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:29.850s
[INFO] Finished at: Sat Apr 21 03:23:42 EDT 2012
[INFO] Final Memory: 61M/392M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project hudson-core: Compilation failure: Compilation failure:
[ERROR] Build.java:[73,16] types hudson.model.AbstractBuild<P,B> and hudson.model.AbstractBuild<P,B> are incompatible; both define getParent(), but with unrelated return types
[ERROR] MarkupFormatterDescriptor.java:[55,53] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,D> conforms to hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,hudson.markup.MarkupFormatterDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,D>
[ERROR] required: hudson.DescriptorExtensionList<hudson.markup.MarkupFormatter,hudson.markup.MarkupFormatterDescriptor>
[ERROR] MatrixBuild.java:[53,7] types hudson.model.AbstractBuild<hudson.matrix.MatrixProject,hudson.matrix.MatrixBuild> and hudson.model.AbstractBuild<hudson.matrix.MatrixProject,hudson.matrix.MatrixBuild> are incompatible; both define getParent(), but with unrelated return types
[ERROR] NativeUnixSupport.java:[48,53] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,D> conforms to hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,hudson.model.Descriptor<hudson.util.jna.NativeUnixSupport>>
[ERROR] found   : <D>hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,D>
[ERROR] required: hudson.DescriptorExtensionList<hudson.util.jna.NativeUnixSupport,hudson.model.Descriptor<hudson.util.jna.NativeUnixSupport>>
[ERROR] ComputerConnectorDescriptor.java:[29,53] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,D> conforms to hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,hudson.slaves.ComputerConnectorDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,D>
[ERROR] required: hudson.DescriptorExtensionList<hudson.slaves.ComputerConnector,hudson.slaves.ComputerConnectorDescriptor>
[ERROR] FreeStyleBuild.java:[28,7] types hudson.model.Build<hudson.model.FreeStyleProject,hudson.model.FreeStyleBuild> and hudson.model.Build<hudson.model.FreeStyleProject,hudson.model.FreeStyleBuild> are incompatible; both define getParent(), but with unrelated return types
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hudson-core
_______________________________________________
hudson-dev mailing list
hudson-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/hudson-dev


_______________________________________________
hudson-dev mailing list
hudson-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/hudson-dev




--
Cheers :-) :-) :-)
NaveenBabu E


_______________________________________________
hudson-dev mailing list
hudson-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/hudson-dev

Back to the top