Building Jenkins

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Jenkins

Venugopal Madathil
I was trying to build jenkins code by following this wiki entry (https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins) but was not able to complete it :( I believe all the setting/configuration i've is correct. Following is the error i got when i run > mvn -DdownloadSources=true eclipse:eclipse 

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ............................... SUCCESS [26.612s]
[INFO] Jenkins CLI ....................................... SUCCESS [4.021s]
[INFO] Jenkins core ...................................... SUCCESS [49.282s]
[INFO] Maven Integration plugin .......................... FAILURE [8.199s]
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:35.294s
[INFO] Finished at: Wed Dec 12 13:02:09 IST 2012
[INFO] Final Memory: 30M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project maven-plugin: Could not resolve dependencies for project org.jenkins-ci.main:maven-plugin:hpi:1.494-SNAPSHOT: Could not find artifact org.jenkins-ci.main:jenkins-core:jar:1.494-SNAPSHOT in maven.jenkins-ci.org (http://maven.jenkins-ci.org/content/repositories/snapshots/) -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :maven-plugin
venuz@venuz-Inspiron-620s:~/work/jenkinsdev/jenkins$ 

Could anyone help me build jenkins properly? 




Reply | Threaded
Open this post in threaded view
|

Re: Building Jenkins

Mauricio Borges Silva
Could you please send us maven debug info?

On Wednesday, December 12, 2012 5:36:42 AM UTC-2, Venugopal Madathil wrote:
I was trying to build jenkins code by following this wiki entry (https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins) but was not able to complete it :( I believe all the setting/configuration i've is correct. Following is the error i got when i run > mvn -DdownloadSources=true eclipse:eclipse 

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ............................... SUCCESS [26.612s]
[INFO] Jenkins CLI ....................................... SUCCESS [4.021s]
[INFO] Jenkins core ...................................... SUCCESS [49.282s]
[INFO] Maven Integration plugin .......................... FAILURE [8.199s]
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:35.294s
[INFO] Finished at: Wed Dec 12 13:02:09 IST 2012
[INFO] Final Memory: 30M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project maven-plugin: Could not resolve dependencies for project org.jenkins-ci.main:maven-plugin:hpi:1.494-SNAPSHOT: Could not find artifact org.jenkins-ci.main:jenkins-core:jar:1.494-SNAPSHOT in maven.jenkins-ci.org (http://maven.jenkins-ci.org/content/repositories/snapshots/) -> [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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :maven-plugin
venuz@venuz-Inspiron-620s:~/work/jenkinsdev/jenkins$ 

Could anyone help me build jenkins properly? 




Reply | Threaded
Open this post in threaded view
|

Re: Building Jenkins

Venugopal Madathil
I took a fresh git clone today and when i tried running > mvn -DdownloadSources=true eclipse:eclipse i get this :( 


[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ............................... SUCCESS [3.554s]
[INFO] Jenkins CLI ....................................... SUCCESS [1.131s]
[INFO] Jenkins core ...................................... SUCCESS [10.030s]
[INFO] Maven Integration plugin .......................... SUCCESS [10.750s]
[INFO] Jenkins war ....................................... SUCCESS [6.271s]
[INFO] Test harness for Jenkins and plugins .............. FAILURE [0.210s]
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.337s
[INFO] Finished at: Thu Dec 13 00:22:31 IST 2012
[INFO] Final Memory: 43M/384M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jenkins-test-harness: Could not resolve dependencies for project org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to collect dependencies for [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile), org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile), org.jenkins-ci.plugins:ant:jar:1.1 (compile), org.jenkins-ci.plugins:subversion:jar:1.26 (compile), org.jenkins-ci.plugins:mailer:jar:1.4 (compile), org.mortbay.jetty:jetty:jar:6.1.26 (compile), org.jvnet.hudson:test-annotations:jar:1.0 (compile), org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile), junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1 (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile), xalan:xalan:jar:2.7.1 (compile), org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile), org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile), org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5 (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile), com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile), org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?), junit:junit:jar:3.8 (test)]: Failed to read artifact descriptor for org.jenkins-ci.plugins:mailer:jar:1.4: The repository system is offline but the artifact org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local repository. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jenkins-test-harness: Could not resolve dependencies for project org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to collect dependencies for [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile), org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile), org.jenkins-ci.plugins:ant:jar:1.1 (compile), org.jenkins-ci.plugins:subversion:jar:1.26 (compile), org.jenkins-ci.plugins:mailer:jar:1.4 (compile), org.mortbay.jetty:jetty:jar:6.1.26 (compile), org.jvnet.hudson:test-annotations:jar:1.0 (compile), org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile), junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1 (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile), xalan:xalan:jar:2.7.1 (compile), org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile), org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile), org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5 (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile), com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile), org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?), junit:junit:jar:3.8 (test)]
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
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.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
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:601)
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.project.DependencyResolutionException: Could not resolve dependencies for project org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to collect dependencies for [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile), org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile), org.jenkins-ci.plugins:ant:jar:1.1 (compile), org.jenkins-ci.plugins:subversion:jar:1.26 (compile), org.jenkins-ci.plugins:mailer:jar:1.4 (compile), org.mortbay.jetty:jetty:jar:6.1.26 (compile), org.jvnet.hudson:test-annotations:jar:1.0 (compile), org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile), junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1 (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile), xalan:xalan:jar:2.7.1 (compile), org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile), org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile), org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5 (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile), com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile), org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?), junit:junit:jar:3.8 (test)]
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 26 more
Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile), org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile), org.jenkins-ci.plugins:ant:jar:1.1 (compile), org.jenkins-ci.plugins:subversion:jar:1.26 (compile), org.jenkins-ci.plugins:mailer:jar:1.4 (compile), org.mortbay.jetty:jetty:jar:6.1.26 (compile), org.jvnet.hudson:test-annotations:jar:1.0 (compile), org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile), junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1 (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile), xalan:xalan:jar:2.7.1 (compile), org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile), org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile), org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5 (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile), com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile), org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?), junit:junit:jar:3.8 (test)]
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
... 27 more
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jenkins-ci.plugins:mailer:jar:1.4
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:331)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
... 29 more
Caused by: org.apache.maven.model.resolution.UnresolvableModelException: The repository system is offline but the artifact org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local repository.
at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:322)
... 32 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The repository system is offline but the artifact org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)
... 37 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: The repository system is offline but the artifact org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:348)
... 40 more
[ERROR] 
[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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jenkins-test-harness
venuz@venuz-Inspiron-1525:~/work/development/jenkins$

On Wednesday, 12 December 2012 18:18:56 UTC+5:30, Mauricio Borges Silva wrote:
Could you please send us maven debug info?

On Wednesday, December 12, 2012 5:36:42 AM UTC-2, Venugopal Madathil wrote:
I was trying to build jenkins code by following this wiki entry (https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins) but was not able to complete it :( I believe all the setting/configuration i've is correct. Following is the error i got when i run > mvn -DdownloadSources=true eclipse:eclipse 

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ............................... SUCCESS [26.612s]
[INFO] Jenkins CLI ....................................... SUCCESS [4.021s]
[INFO] Jenkins core ...................................... SUCCESS [49.282s]
[INFO] Maven Integration plugin .......................... FAILURE [8.199s]
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:35.294s
[INFO] Finished at: Wed Dec 12 13:02:09 IST 2012
[INFO] Final Memory: 30M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project maven-plugin: Could not resolve dependencies for project org.jenkins-ci.main:maven-plugin:hpi:1.494-SNAPSHOT: Could not find artifact org.jenkins-ci.main:jenkins-core:jar:1.494-SNAPSHOT in maven.jenkins-ci.org (http://maven.jenkins-ci.org/content/repositories/snapshots/) -> [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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :maven-plugin
venuz@venuz-Inspiron-620s:~/work/jenkinsdev/jenkins$ 

Could anyone help me build jenkins properly? 




Reply | Threaded
Open this post in threaded view
|

Re: Re: Building Jenkins

Vojtech Juranek
There are missing some artifacts in maven repo, see "" I've just sent. Should
be fixed once Jenkins 1.494 is released (or hopefully even sooner).

If you want to fix it locally, you can switch to rc branch, change 1.494-
SNAPHOST to 1.494 in poms of all maven sub-modules, build these artifacts and
install them locally

On Wednesday 12 December 2012 10:57:59 Venugopal Madathil wrote:

> I took a fresh git clone today and when i tried running > mvn
> -DdownloadSources=true eclipse:eclipse i get this :(
>
>
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Jenkins main module ............................... SUCCESS [3.554s]
> [INFO] Jenkins CLI ....................................... SUCCESS [1.131s]
> [INFO] Jenkins core ...................................... SUCCESS [10.030s]
> [INFO] Maven Integration plugin .......................... SUCCESS
> [10.750s] [INFO] Jenkins war .......................................
> SUCCESS [6.271s] [INFO] Test harness for Jenkins and plugins ..............
> FAILURE [0.210s] [INFO] Jenkins UI sample plugin ..........................
> SKIPPED [INFO] Jenkins plugin POM ................................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 35.337s
> [INFO] Finished at: Thu Dec 13 00:22:31 IST 2012
> [INFO] Final Memory: 43M/384M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project jenkins-test-harness: Could not
> resolve dependencies for project
> org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to
> collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]: Failed to read artifact descriptor for
> org.jenkins-ci.plugins:mailer:jar:1.4: The repository system is offline but
> the artifact org.jenkins-ci.plugins:plugin:pom:1.494 is not available in
> the local repository. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project jenkins-test-harness: Could not resolve dependencies for
> project org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed
> to collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]
> at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependenc
> ies(LifecycleDependencyResolver.java:210) at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProje
> ctDependencies(LifecycleDependencyResolver.java:117) at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolv
> ed(MojoExecutor.java:258) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
> 01) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 53) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 45) at
> org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(Moj
> oExecutor.java:365) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 99) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 53) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 45) at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:84) at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:59) at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
> ecycleStarter.java:183) at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
> r.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:601)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja
> va: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.project.DependencyResolutionException: Could
> not resolve dependencies for project
> org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to
> collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]
> at
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultP
> rojectDependenciesResolver.java:158) at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependenc
> ies(LifecycleDependencyResolver.java:185) ... 26 more
> Caused by: org.sonatype.aether.collection.DependencyCollectionException:
> Failed to collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]
> at
> org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependen
> cies(DefaultDependencyCollector.java:258) at
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencie
> s(DefaultRepositorySystem.java:308) at
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultP
> rojectDependenciesResolver.java:150) ... 27 more
> Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException:
> Failed to read artifact descriptor for org.jenkins-ci.plugins:mailer:jar:1.4
> at
> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom
> (DefaultArtifactDescriptorReader.java:331) at
> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArt
> ifactDescriptor(DefaultArtifactDescriptorReader.java:186) at
> org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(Default
> DependencyCollector.java:412) at
> org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependen
> cies(DefaultDependencyCollector.java:240) ... 29 more
> Caused by: org.apache.maven.model.resolution.UnresolvableModelException:
> The repository system is offline but the artifact
> org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local
> repository.
> at
> org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(Defau
> ltModelResolver.java:126) at
> org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(Def
> aultModelBuilder.java:813) at
> org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelB
> uilder.java:664) at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilde
> r.java:310) at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilde
> r.java:232) at
> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom
> (DefaultArtifactDescriptorReader.java:322) ... 32 more
> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The
> repository system is offline but the artifact
> org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local
> repository.
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArt
> ifactResolver.java:538) at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(D
> efaultArtifactResolver.java:216) at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(De
> faultArtifactResolver.java:193) at
> org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(Defau
> ltModelResolver.java:122) ... 37 more
> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: The
> repository system is offline but the artifact
> org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local
> repository.
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArt
> ifactResolver.java:348) ... 40 more
> [ERROR]
> [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/DependencyResolutionExcepti
> on [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :jenkins-test-harness
> venuz@venuz-Inspiron-1525:~/work/development/jenkins$
>
> On Wednesday, 12 December 2012 18:18:56 UTC+5:30, Mauricio Borges Silva
>
> wrote:
> > Could you please send us maven debug info?
> >
> > On Wednesday, December 12, 2012 5:36:42 AM UTC-2, Venugopal Madathil
wrote:

> >> I was trying to build jenkins code by following this wiki entry (
> >> https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins) but was
> >> not able to complete it :( I believe all the setting/configuration i've
> >> is
> >> correct. Following is the error i got when i run > mvn
> >> -DdownloadSources=true eclipse:eclipse
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Reactor Summary:
> >> [INFO]
> >> [INFO] Jenkins main module ............................... SUCCESS
> >> [26.612s]
> >> [INFO] Jenkins CLI ....................................... SUCCESS
> >> [4.021s]
> >> [INFO] Jenkins core ...................................... SUCCESS
> >> [49.282s]
> >> [INFO] Maven Integration plugin .......................... FAILURE
> >> [8.199s]
> >> [INFO] Jenkins war ....................................... SKIPPED
> >> [INFO] Test harness for Jenkins and plugins .............. SKIPPED
> >> [INFO] Jenkins UI sample plugin .......................... SKIPPED
> >> [INFO] Jenkins plugin POM ................................ SKIPPED
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 1:35.294s
> >> [INFO] Finished at: Wed Dec 12 13:02:09 IST 2012
> >> [INFO] Final Memory: 30M/76M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal on project maven-plugin: Could not resolve
> >> dependencies for project
> >> org.jenkins-ci.main:maven-plugin:hpi:1.494-SNAPSHOT: Could not find
> >> artifact org.jenkins-ci.main:jenkins-core:jar:1.494-SNAPSHOT in
> >> maven.jenkins-ci.org (
> >> http://maven.jenkins-ci.org/content/repositories/snapshots/) -> [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/DependencyResolutionExce
> >> ption [ERROR]
> >> [ERROR] After correcting the problems, you can resume the build with the
> >> command
> >> [ERROR]   mvn <goals> -rf :maven-plugin
> >> venuz@venuz-Inspiron-620s:~/work/jenkinsdev/jenkins$
> >>
> >> Could anyone help me build jenkins properly?
Reply | Threaded
Open this post in threaded view
|

Re: Re: Building Jenkins

Venugopal Madathil
Hi, 

On Thursday, 13 December 2012 20:52:40 UTC+5:30, vjuranek wrote:
There are missing some artifacts in maven repo, see "" I've just sent. Should
be fixed once Jenkins 1.494 is released (or hopefully even sooner).

Sorry i did not get you :( What did you mean by "See what i've just sent". 
 

If you want to fix it locally, you can switch to rc branch, change 1.494-
SNAPHOST to 1.494 in poms of all maven sub-modules, build these artifacts and
install them locally

Tried replacing the version and i got lost. Could you please tell me in which all poms i should make the changes? 
 

On Wednesday 12 December 2012 10:57:59 Venugopal Madathil wrote:

> I took a fresh git clone today and when i tried running > mvn
> -DdownloadSources=true eclipse:eclipse i get this :(
>
>
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Jenkins main module ............................... SUCCESS [3.554s]
> [INFO] Jenkins CLI ....................................... SUCCESS [1.131s]
> [INFO] Jenkins core ...................................... SUCCESS [10.030s]
> [INFO] Maven Integration plugin .......................... SUCCESS
> [10.750s] [INFO] Jenkins war .......................................
> SUCCESS [6.271s] [INFO] Test harness for Jenkins and plugins ..............
> FAILURE [0.210s] [INFO] Jenkins UI sample plugin ..........................
> SKIPPED [INFO] Jenkins plugin POM ................................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 35.337s
> [INFO] Finished at: Thu Dec 13 00:22:31 IST 2012
> [INFO] Final Memory: 43M/384M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project jenkins-test-harness: Could not
> resolve dependencies for project
> org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to
> collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]: Failed to read artifact descriptor for
> org.jenkins-ci.plugins:mailer:jar:1.4: The repository system is offline but
> the artifact org.jenkins-ci.plugins:plugin:pom:1.494 is not available in
> the local repository. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project jenkins-test-harness: Could not resolve dependencies for
> project org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed
> to collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]
> at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependenc
> ies(LifecycleDependencyResolver.java:210) at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProje
> ctDependencies(LifecycleDependencyResolver.java:117) at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolv
> ed(MojoExecutor.java:258) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
> 01) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 53) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 45) at
> org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(Moj
> oExecutor.java:365) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 99) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 53) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 45) at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:84) at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:59) at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
> ecycleStarter.java:183) at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
> r.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:601)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja
> va: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.project.DependencyResolutionException: Could
> not resolve dependencies for project
> org.jenkins-ci.main:jenkins-test-harness:jar:1.495-SNAPSHOT: Failed to
> collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]
> at
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultP
> rojectDependenciesResolver.java:158) at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependenc
> ies(LifecycleDependencyResolver.java:185) ... 26 more
> Caused by: org.sonatype.aether.collection.DependencyCollectionException:
> Failed to collect dependencies for
> [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.495-SNAPSHOT (compile),
> org.jenkins-ci.main:maven-plugin:jar:1.495-SNAPSHOT (compile),
> org.jenkins-ci.plugins:ant:jar:1.1 (compile),
> org.jenkins-ci.plugins:subversion:jar:1.26 (compile),
> org.jenkins-ci.plugins:mailer:jar:1.4 (compile),
> org.mortbay.jetty:jetty:jar:6.1.26 (compile),
> org.jvnet.hudson:test-annotations:jar:1.0 (compile),
> org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile),
> junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1
> (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile),
> xalan:xalan:jar:2.7.1 (compile),
> org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile),
> org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile),
> org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5
> (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile),
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile),
> org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?),
> junit:junit:jar:3.8 (test)]
> at
> org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependen
> cies(DefaultDependencyCollector.java:258) at
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencie
> s(DefaultRepositorySystem.java:308) at
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultP
> rojectDependenciesResolver.java:150) ... 27 more
> Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException:
> Failed to read artifact descriptor for org.jenkins-ci.plugins:mailer:jar:1.4
> at
> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom
> (DefaultArtifactDescriptorReader.java:331) at
> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArt
> ifactDescriptor(DefaultArtifactDescriptorReader.java:186) at
> org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(Default
> DependencyCollector.java:412) at
> org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependen
> cies(DefaultDependencyCollector.java:240) ... 29 more
> Caused by: org.apache.maven.model.resolution.UnresolvableModelException:
> The repository system is offline but the artifact
> org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local
> repository.
> at
> org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(Defau
> ltModelResolver.java:126) at
> org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(Def
> aultModelBuilder.java:813) at
> org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelB
> uilder.java:664) at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilde
> r.java:310) at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilde
> r.java:232) at
> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom
> (DefaultArtifactDescriptorReader.java:322) ... 32 more
> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The
> repository system is offline but the artifact
> org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local
> repository.
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArt
> ifactResolver.java:538) at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(D
> efaultArtifactResolver.java:216) at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(De
> faultArtifactResolver.java:193) at
> org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(Defau
> ltModelResolver.java:122) ... 37 more
> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: The
> repository system is offline but the artifact
> org.jenkins-ci.plugins:plugin:pom:1.494 is not available in the local
> repository.
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArt
> ifactResolver.java:348) ... 40 more
> [ERROR]
> [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/DependencyResolutionExcepti
> on [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :jenkins-test-harness
> venuz@venuz-Inspiron-1525:~/work/development/jenkins$
>
> On Wednesday, 12 December 2012 18:18:56 UTC+5:30, Mauricio Borges Silva
>
> wrote:
> > Could you please send us maven debug info?
> >
> > On Wednesday, December 12, 2012 5:36:42 AM UTC-2, Venugopal Madathil
wrote:

> >> I was trying to build jenkins code by following this wiki entry (
> >> https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins) but was
> >> not able to complete it :( I believe all the setting/configuration i've
> >> is
> >> correct. Following is the error i got when i run > mvn
> >> -DdownloadSources=true eclipse:eclipse
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Reactor Summary:
> >> [INFO]
> >> [INFO] Jenkins main module ............................... SUCCESS
> >> [26.612s]
> >> [INFO] Jenkins CLI ....................................... SUCCESS
> >> [4.021s]
> >> [INFO] Jenkins core ...................................... SUCCESS
> >> [49.282s]
> >> [INFO] Maven Integration plugin .......................... FAILURE
> >> [8.199s]
> >> [INFO] Jenkins war ....................................... SKIPPED
> >> [INFO] Test harness for Jenkins and plugins .............. SKIPPED
> >> [INFO] Jenkins UI sample plugin .......................... SKIPPED
> >> [INFO] Jenkins plugin POM ................................ SKIPPED
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 1:35.294s
> >> [INFO] Finished at: Wed Dec 12 13:02:09 IST 2012
> >> [INFO] Final Memory: 30M/76M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal on project maven-plugin: Could not resolve
> >> dependencies for project
> >> org.jenkins-ci.main:maven-plugin:hpi:1.494-SNAPSHOT: Could not find
> >> artifact org.jenkins-ci.main:jenkins-core:jar:1.494-SNAPSHOT in
> >> maven.jenkins-ci.org (
> >> http://maven.jenkins-ci.org/content/repositories/snapshots/) -> [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/DependencyResolutionExce
> >> ption [ERROR]
> >> [ERROR] After correcting the problems, you can resume the build with the
> >> command
> >> [ERROR]   mvn <goals> -rf :maven-plugin
> >> venuz@venuz-Inspiron-620s:~/work/jenkinsdev/jenkins$
> >>
> >> Could anyone help me build jenkins properly?
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Building Jenkins

Vojtech Juranek
Hi,
 
> Sorry i did not get you :( What did you mean by "See what i've just sent".

sorry, I wanted to refer to post [1]
 
> > If you want to fix it locally, you can switch to rc branch, change 1.494-
> > SNAPHOST to 1.494 in poms of all maven sub-modules, build these artifacts
> > and
> > install them locally
>
> Tried replacing the version and i got lost. Could you please tell me in
> which all poms i should make the changes?

due to fix [2], it's not needed, just checkout to rc branch, apply same changes
in [2], run (to have 1.494-SNAPSHOT installed locally)
mvn clean install -DskipTests
checkout back to master branch and you should be able to to build jenkins
successfully

HTH
Vojta

[1] http://groups.google.com/group/jenkinsci-
dev/browse_thread/thread/dfa65b7c25d24239#

[2]
https://github.com/jenkinsci/jenkins/commit/adb562aa0c78a452785f0e4248243fc3db1de169
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Building Jenkins

Venugopal Madathil
Hi, 


On Saturday, 15 December 2012 22:27:35 UTC+5:30, vjuranek wrote:
Hi,
 
> Sorry i did not get you :( What did you mean by "See what i've just sent".

sorry, I wanted to refer to post [1]
 
> > If you want to fix it locally, you can switch to rc branch, change 1.494-
> > SNAPHOST to 1.494 in poms of all maven sub-modules, build these artifacts
> > and
> > install them locally
>
> Tried replacing the version and i got lost. Could you please tell me in
> which all poms i should make the changes?

due to fix [2], it's not needed, just checkout to rc branch, apply same changes
in [2], run (to have 1.494-SNAPSHOT installed locally)
mvn clean install -DskipTests

I already had the version 1.494-SNAPSHOT in my pom. 
 
checkout back to master branch and you should be able to to build jenkins
successfully

Again i took a git clone today thinking everything would have been fixed. Still i'm getting errors :( Kinldy help. 

When i run > mvn -Plight-test install

I get 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jenkins-core: Compilation failure: Compilation failure:
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,36] 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] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/SettingsProviderDescriptor.java:[17,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D> conforms to java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/GlobalSettingsProviderDescriptor.java:[18,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D> conforms to java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jenkins-core: Compilation failure
	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.compiler.CompilationFailureException: Compilation failure
	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:745)
	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:118)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
[ERROR] 
[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 :jenkins-core
venuz@venuz-Inspiron-620s:~/work/jenkinsdev/jenkins$ 



 

HTH
Vojta

[1] http://groups.google.com/group/jenkinsci-
dev/browse_thread/thread/dfa65b7c25d24239#


[2]
https://github.com/jenkinsci/jenkins/commit/adb562aa0c78a452785f0e4248243fc3db1de169
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Building Jenkins

Vojtech Juranek
Hi,

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project jenkins-core: Compilation failure: Compilation
> failure: [ERROR]

this is strange, I just tried and I can compile it without any problem. What
JDK do you use? Some similar problem appeared in the past when compiling with
OpenJDK, but I tried OpenJDK 1.7.0 and works fine even with OpenJDK (i.e. I
cannot reproduce this error)

Cheers
Vojta

Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Building Jenkins

Venugopal Madathil
Hi Vojta, 

I use java version "1.7.0_04" not OpenJDK. Tried switching to OpenJDK 1.7.0 too but was in vain. 
I wonder why no one else get this compilation issue. What else could be wrong here?  

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jenkins-core: Compilation failure: Compilation failure:
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,36] 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] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/SettingsProviderDescriptor.java:[17,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D> conforms to java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/GlobalSettingsProviderDescriptor.java:[18,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D> conforms to java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jenkins-core



--
Thanks
Venuz



On Mon, Dec 17, 2012 at 2:41 PM, Vojtech Juranek <[hidden email]> wrote:
Hi,

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project jenkins-core: Compilation failure: Compilation
> failure: [ERROR]

this is strange, I just tried and I can compile it without any problem. What
JDK do you use? Some similar problem appeared in the past when compiling with
OpenJDK, but I tried OpenJDK 1.7.0 and works fine even with OpenJDK (i.e. I
cannot reproduce this error)

Cheers
Vojta




--

Cheers

Venu


Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Building Jenkins

Venugopal Madathil
Hi,

I took a fresh git clone today also and tried building, but was in vain :( 
Till "Test harness for Jenkins and plugins" module its building properly and then it fails because of some dependency issues. 
Kindly help. 

Error:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ............................... SUCCESS [5.150s]
[INFO] Jenkins CLI ....................................... SUCCESS [12.639s]
[INFO] Jenkins core ...................................... SUCCESS [2:06.282s]
[INFO] Maven Integration plugin .......................... SUCCESS [1:06.046s]
[INFO] Jenkins war ....................................... SUCCESS [36.725s]
[INFO] Test harness for Jenkins and plugins .............. FAILURE [3.545s]
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:16.092s
[INFO] Finished at: Thu Dec 20 12:31:20 IST 2012
[INFO] Final Memory: 74M/372M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jenkins-test-harness: Could not resolve dependencies for project org.jenkins-ci.main:jenkins-test-harness:jar:1.496-SNAPSHOT: Failed to collect dependencies for [org.jenkins-ci.main:jenkins-war:jar:war-for-test:1.496-SNAPSHOT (compile), org.jenkins-ci.main:maven-plugin:jar:1.496-SNAPSHOT (compile), org.jenkins-ci.plugins:ant:jar:1.1 (compile), org.jenkins-ci.plugins:subversion:jar:1.26 (compile), org.jenkins-ci.plugins:mailer:jar:1.4-SNAPSHOT (compile), org.mortbay.jetty:jetty:jar:6.1.26 (compile), org.jvnet.hudson:test-annotations:jar:1.0 (compile), org.jvnet.mock-javamail:mock-javamail:jar:1.7 (compile), junit:junit-dep:jar:4.10 (compile), org.hamcrest:hamcrest-library:jar:1.2.1 (compile), org.jenkins-ci:htmlunit:jar:2.6-jenkins-6 (compile), xalan:xalan:jar:2.7.1 (compile), org.jvnet.hudson:embedded-rhino-debugger:jar:1.2 (compile), org.jvnet.hudson:netx:jar:0.5-hudson-2 (compile), org.easymock:easymock:jar:2.4 (compile), org.mockito:mockito-core:jar:1.8.5 (test), org.netbeans.modules:org-netbeans-insane:jar:RELEASE72 (compile), com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1 (compile), org.codehaus.mojo:animal-sniffer-annotations:jar:1.9 (provided?), junit:junit:jar:3.8 (test)]: Failed to read artifact descriptor for org.jenkins-ci.plugins:mailer:jar:1.4-SNAPSHOT: Could not find artifact org.jenkins-ci.plugins:plugin:pom:1.494-SNAPSHOT in maven.jenkins-ci.org (http://maven.jenkins-ci.org/content/repositories/snapshots/) -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jenkins-test-harness
venuz@venuz-Inspiron-620s:~/work/dev/jenkinsdev/jenkins$ 




On Monday, 17 December 2012 15:06:23 UTC+5:30, Venugopal Madathil wrote:
Hi Vojta, 

I use java version "1.7.0_04" not OpenJDK. Tried switching to OpenJDK 1.7.0 too but was in vain. 
I wonder why no one else get this compilation issue. What else could be wrong here?  

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jenkins-core: Compilation failure: Compilation failure:
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,36] 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] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/SettingsProviderDescriptor.java:[17,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D> conforms to java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/GlobalSettingsProviderDescriptor.java:[18,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D> conforms to java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jenkins-core



--
Thanks
Venuz



On Mon, Dec 17, 2012 at 2:41 PM, Vojtech Juranek <[hidden email]> wrote:
Hi,

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project jenkins-core: Compilation failure: Compilation
> failure: [ERROR]

this is strange, I just tried and I can compile it without any problem. What
JDK do you use? Some similar problem appeared in the past when compiling with
OpenJDK, but I tried OpenJDK 1.7.0 and works fine even with OpenJDK (i.e. I
cannot reproduce this error)

Cheers
Vojta




--

Cheers

Venu



On Monday, 17 December 2012 15:06:23 UTC+5:30, Venugopal Madathil wrote:
Hi Vojta, 

I use java version "1.7.0_04" not OpenJDK. Tried switching to OpenJDK 1.7.0 too but was in vain. 
I wonder why no one else get this compilation issue. What else could be wrong here?  

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jenkins-core: Compilation failure: Compilation failure:
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,36] 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] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/SettingsProviderDescriptor.java:[17,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D> conforms to java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/GlobalSettingsProviderDescriptor.java:[18,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D> conforms to java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jenkins-core



--
Thanks
Venuz



On Mon, Dec 17, 2012 at 2:41 PM, Vojtech Juranek <[hidden email]> wrote:
Hi,

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project jenkins-core: Compilation failure: Compilation
> failure: [ERROR]

this is strange, I just tried and I can compile it without any problem. What
JDK do you use? Some similar problem appeared in the past when compiling with
OpenJDK, but I tried OpenJDK 1.7.0 and works fine even with OpenJDK (i.e. I
cannot reproduce this error)

Cheers
Vojta




--

Cheers

Venu



On Monday, 17 December 2012 15:06:23 UTC+5:30, Venugopal Madathil wrote:
Hi Vojta, 

I use java version "1.7.0_04" not OpenJDK. Tried switching to OpenJDK 1.7.0 too but was in vain. 
I wonder why no one else get this compilation issue. What else could be wrong here?  

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jenkins-core: Compilation failure: Compilation failure:
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/hudson/DescriptorExtensionList.java:[86,36] 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] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/SettingsProviderDescriptor.java:[17,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D> conforms to java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.SettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.SettingsProviderDescriptor>
[ERROR] /home/venuz/work/jenkinsdev/jenkins/core/src/main/java/jenkins/mvn/GlobalSettingsProviderDescriptor.java:[18,55] incompatible types; no instance(s) of type variable(s) D exist so that hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D> conforms to java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[ERROR] found   : <D>hudson.DescriptorExtensionList<jenkins.mvn.GlobalSettingsProvider,D>
[ERROR] required: java.util.List<jenkins.mvn.GlobalSettingsProviderDescriptor>
[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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jenkins-core



--
Thanks
Venuz



On Mon, Dec 17, 2012 at 2:41 PM, Vojtech Juranek <[hidden email]> wrote:
Hi,

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project jenkins-core: Compilation failure: Compilation
> failure: [ERROR]

this is strange, I just tried and I can compile it without any problem. What
JDK do you use? Some similar problem appeared in the past when compiling with
OpenJDK, but I tried OpenJDK 1.7.0 and works fine even with OpenJDK (i.e. I
cannot reproduce this error)

Cheers
Vojta




--

Cheers

Venu


Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Building Jenkins

Erik Molekamp-2
Venugopal Madathil wrote:
> I wonder why no one else get this compilation issue.

Actually, I get the exact same problem. My environment as reported by Maven is:
Maven Version: 3.0.4
JDK Version: 1.7.0_07 normalized as: 1.7.0-7
OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1

I have been able to build Jenkins successfully earlier. It just started breaking recently. Unfortunately I don't have a solution either, but at least you are not the only one.

--
Erik
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Building Jenkins

Vojtech Juranek
Hi,
please try to fetch latest changes from github and build again. I moved mailer
dependency back to mailer-1.4 - as 1.494 is already released, you should be
able to compile it now.
Cheers
Vojta

On Friday 21 December 2012 12:30:19 Erik Molekamp wrote:

> Venugopal Madathil wrote:
> > I wonder why no one else get this compilation issue.
>
> Actually, I get the exact same problem. My environment as reported by Maven
> is:
> Maven Version: 3.0.4
> JDK Version: 1.7.0_07 normalized as: 1.7.0-7
> OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
>
> I have been able to build Jenkins successfully earlier. It just started
> breaking recently. Unfortunately I don't have a solution either, but at
> least you are not the only one.
>
> --
> Erik
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Building Jenkins

Venugopal Madathil
Hi,

Fetched all latest changes and i'm able to build now. :) Thanks a lot Vojta. 

On Sat, Dec 22, 2012 at 2:37 AM, Vojtech Juranek <[hidden email]> wrote:
Hi,
please try to fetch latest changes from github and build again. I moved mailer
dependency back to mailer-1.4 - as 1.494 is already released, you should be
able to compile it now.
Cheers
Vojta

On Friday 21 December 2012 12:30:19 Erik Molekamp wrote:
> Venugopal Madathil wrote:
> > I wonder why no one else get this compilation issue.
>
> Actually, I get the exact same problem. My environment as reported by Maven
> is:
> Maven Version: 3.0.4
> JDK Version: 1.7.0_07 normalized as: 1.7.0-7
> OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
>
> I have been able to build Jenkins successfully earlier. It just started
> breaking recently. Unfortunately I don't have a solution either, but at
> least you are not the only one.
>
> --
> Erik



--

Cheers

Venuz

@falseNo_09