[Blue Ocean] Build Error

95 views
Skip to first unread message

Andrew Gray

unread,
Jun 23, 2016, 4:35:20 PM6/23/16
to Jenkins Developers
I tried to follow the github instructions for building/running Blue Ocean... however I encountered some errors I was hoping someone could help me resolve:
Any help is appreciated.

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building (Alpha) BlueOcean :: Aggregator 1.0-alpha-1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-hpi-plugin:1.117:run (default-cli) @ blueocean >>>
[WARNING] The POM for io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.jenkins.blueocean:blueocean-dashboard:jar:1.0-alpha-1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.jenkins.blueocean:blueocean-rest:jar:1.0-alpha-1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.jenkins.blueocean:blueocean-rest-impl:jar:1.0-alpha-1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.095s
[INFO] Finished at: Thu Jun 23 16:31:50 EDT 2016
[INFO] Final Memory: 24M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project blueocean: Could not resolve dependencies for project io.jenkins.blueocean:blueocean:hpi:1.0-alpha-1-SNAPSHOT: The following artifacts could not be resolved: io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-dashboard:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest-impl:jar:1.0-alpha-1-SNAPSHOT: Failure to find io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project blueocean: Could not resolve dependencies for project io.jenkins.blueocean:blueocean:hpi:1.0-alpha-1-SNAPSHOT: The following artifacts could not be resolved: io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-dashboard:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest-impl:jar:1.0-alpha-1-SNAPSHOT: Failure to find io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced
        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:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project io.jenkins.blueocean:blueocean:hpi:1.0-alpha-1-SNAPSHOT: The following artifacts could not be resolved: io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-dashboard:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest-impl:jar:1.0-alpha-1-SNAPSHOT: Failure to find io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
        ... 26 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-dashboard:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest-impl:jar:1.0-alpha-1-SNAPSHOT: Failure to find io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced
        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
        ... 27 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-dashboard:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest:jar:1.0-alpha-1-SNAPSHOT, io.jenkins.blueocean:blueocean-rest-impl:jar:1.0-alpha-1-SNAPSHOT: Failure to find io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced
        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.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
        ... 28 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find io.jenkins.blueocean:blueocean-web:jar:1.0-alpha-1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced
        at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
        at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
        ... 30 more
[ERROR]
[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:

Cliff Meyers

unread,
Jun 23, 2016, 4:58:06 PM6/23/16
to jenkin...@googlegroups.com
Hi Andrew,

It looks like you might be running the shell commands from the "blueocean-plugin" subdirectory. Can you double-check that you are running the shell commands from the parent directory?

-Cliff


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/dcf3225b-5cf2-4b53-9808-7cb26823a9fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Gray

unread,
Jun 24, 2016, 11:38:12 AM6/24/16
to Jenkins Developers
Hey Cliff,

Thanks for the response! I am definitely running from the parent directory. I tried creating a new directory and pulling the code down and running the commands again but ran into the same errors. Here is some more information:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:     trusty

I also created a log of the output I received after running mvn clean install in the new directory.

Any help is appreciated.

Thanks!
log

Cliff Meyers

unread,
Jun 24, 2016, 1:50:20 PM6/24/16
to jenkin...@googlegroups.com
Hi Andrew,

This error in the log file appears to be the culprit:

Detected Maven Version: 3.0.5 is not in the allowed range 3.1.0.

I suggest upgrading to a later version. You can see your current version w/ "mvn -version". If you are using a package manager to install it, hopefully there's a new one available. If not, you can download from the Apache Maven site and install to an arbitrary directory. Just make sure your M2_HOME environment variable is set and that M2_HOME/bin is on your path.

-Cliff


Andrew Gray

unread,
Jun 24, 2016, 4:10:33 PM6/24/16
to Jenkins Developers
Hey Cliff,

I was able to get further. I installed a newer version of Maven... however now after running the following command:

mvn -f blueocean-plugin/pom.xml hpi:run
I receive this error:

FAILED ServerConnector@7b4aa08d{HTTP/1.1}{0.0.0.0:8080}: java.net.BindException: Address already in use

Any help is appreciated.

Thanks,
Andrew

Thomas Zoratto

unread,
Jun 24, 2016, 4:13:43 PM6/24/16
to jenkin...@googlegroups.com
Another process is listening on this port.

-- 
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Baptiste Mathus

unread,
Jun 24, 2016, 5:32:01 PM6/24/16
to Jenkins Developers
@Andrew, out of curiosity, what are you trying to do? Do you want to hack on blueocean, or just want to play with it?

If the latter, then it'd be probably simpler to go with Docker.
I pushed an updated image yesterday at batmat/blueocean-demo.

$ docker run -p 8080:8080 batmat/blueocean-demo

Then point your browser at http://localhost:8080

(since jenkinsci/blueocean is a bit outdated, but should be updated soon).

HTH


Reply all
Reply to author
Forward
0 new messages