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

Hi,

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

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