Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: core
Created: 14/Sep/12 7:15 AM
Description:

Build jenkins by the command: mvn -Denforcer.skip=true -Plight-test clean install

  • We need skip maven-enforcer-plugin, although we have openjdk 1.6.0_24 and maven 3.0.3.
  • There are problems about generic classes or methods type inference. I got the following errors:

[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/tsllst/study/src/jenkinsci-jenkins-f1aa7ba/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]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile)
on project jenkins-core: Compilation failure: Compilation failure:
[ERROR]
/home/xning/study/src/jenkinsci-jenkins-53f2177/core/src/main/java/hudson/model/AbstractBuild.java:[465,49]
cannot find symbol
[ERROR] symbol : method getCustomWorkspace()
[ERROR] location: class hudson.model.Job
[ERROR]
/home/xning/study/src/jenkinsci-jenkins-53f2177/core/src/main/java/hudson/model/AbstractBuild.java:[499,28]
cannot find symbol
[ERROR] symbol : method getScmCheckoutStrategy()
[ERROR] location: class hudson.model.Job

  • Cannot compile groovy files

[ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.3:compile (default) on project jenkins-core:
startup failed:
[ERROR]
/home/xning/study/src/jenkinsci-jenkins-53f2177/core/src/main/groovy/jenkins/util/groovy/AbstractGroovyViewModul\
e.groovy: 7: unable to resolve class lib.JenkinsTagLib
[ERROR] @ line 7, column 1.
[ERROR] import lib.JenkinsTagLib

  • Cannot process annotation

[ERROR] Failed to execute goal com.infradna.tool:bridge-method-injector:1.4:process (default) on project
jenkins-core: Failed to process @WithBridgeMethods:
/home/xning/study/src/jenkinsci-jenkins-f48d05d/core/target/classes/hudson/model/User.class (No such file or
directory) -> [Help 1]

Due Date: 14/Sep/12 12:00 AM
Environment: Linux desktop.pusf.org 3.4.9-2.fc16.x86_64 #1 SMP Thu Aug 23 17:51:29 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (fedora-67.1.11.3.fc16-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
javac 1.6.0_24
Apache Maven 3.0.3 (rNON-CANONICAL_2011-10-11_11-56_mockbuild; 2011-10-11 19:56:36+0800)
Maven home: /usr/share/maven
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.4.9-2.fc16.x86_64", arch: "amd64", family: "unix"

Project: Jenkins
Labels: jenkins build
Priority: Major Major
Reporter: xibo ning
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to