Trying to build reviewers plugin 2.13 fails

52 views
Skip to first unread message

Ben Copeland

unread,
Jun 13, 2017, 7:37:57 AM6/13/17
to Repo and Gerrit Discussion

Hello All,

Can build 2.13 okay, but 2.14 fails:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.976 s
[INFO] Finished at: 2017-06-13T12:34:14+01:00
[INFO] Final Memory: 11M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project reviewers: Could not resolve dependencies for project com.googlesource.gerrit.plugins.reviewers:reviewers:jar:2.14-SNAPSHOT: The following artifacts could not be resolved: com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT, com.google.gerrit:gerrit-plugin-gwtui:jar:2.14-SNAPSHOT: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project reviewers: Could not resolve dependencies for project com.googlesource.gerrit.plugins.reviewers:reviewers:jar:2.14-SNAPSHOT: The following artifacts could not be resolved: com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT, com.google.gerrit:gerrit-plugin-gwtui:jar:2.14-SNAPSHOT: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:246)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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 com.googlesource.gerrit.plugins.reviewers:reviewers:jar:2.14-SNAPSHOT: The following artifacts could not be resolved: com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT, com.google.gerrit:gerrit-plugin-gwtui:jar:2.14-SNAPSHOT: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:208)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
    ... 23 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT, com.google.gerrit:gerrit-plugin-gwtui:jar:2.14-SNAPSHOT: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:393)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:202)
    ... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT, com.google.gerrit:gerrit-plugin-gwtui:jar:2.14-SNAPSHOT: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:376)
    ... 25 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.14-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/)
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:364)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:76)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
[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


Ben

David Pursehouse

unread,
Jun 13, 2017, 8:24:06 AM6/13/17
to Ben Copeland, Repo and Gerrit Discussion
On Tue, Jun 13, 2017 at 8:37 PM Ben Copeland <ben.co...@linaro.org> wrote:

Hello All,

Can build 2.13 okay, but 2.14 fails:


It's failing because it's trying to use the 2.14-SNAPSHOT version of the API, which is not available.

This should be fixed by [1] for the bazel build and [2, 3] for the maven build.

I'm surprised to see that the maven build still exists.  I recommend you use the bazel build instead, as that's the one that's actively maintained.



 
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages