Since the downing of the the Google authentication I have been researching ways to compile the GitHub Authentication for Gerrit. In following Luca's guide (
http://www.packtpub.com/article/using-gerrit-with-github), I have come across the following errors:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Gerrit Code Review - GitHub integration
[INFO] Gerrit Code Review - GitHub OAuth login
[INFO] Gerrit Code Review - GitHub plugin
[INFO] ------------------------------------------------------------------------
[INFO] Building Gerrit Code Review - GitHub integration
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/gerrit2/github/pom.xml to /root/.m2/repository/com/googlesource/gerrit/plugins/github/github-parent/2.10-SNAPSHOT/github-parent-2.10-SNAPSHO$
[INFO] ------------------------------------------------------------------------
[INFO] Building Gerrit Code Review - GitHub OAuth login
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/gerrit2/github/github-oauth/src/main/resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.kohsuke:github-api:jar:1.57-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.kohsuke -DartifactId=github-api -Dversion=1.57-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.kohsuke -DartifactId=github-api -Dversion=1.57-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[$
Path to dependency:
1) com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
2) org.kohsuke:github-api:jar:1.57-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.10-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gerrit -DartifactId=gerrit-plugin-api -Dversion=2.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gerrit -DartifactId=gerrit-plugin-api -Dversion=2.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dr$
Path to dependency:
1) com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.10-SNAPSHOT
----------
2 required artifacts are missing.
for artifact:
com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
from the specified remote repositories:
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.kohsuke -DartifactId=github-api -Dversion=1.57-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[$
Path to dependency:
1) com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
2) org.kohsuke:github-api:jar:1.57-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.10-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gerrit -DartifactId=gerrit-plugin-api -Dversion=2.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gerrit -DartifactId=gerrit-plugin-api -Dversion=2.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dr$
Path to dependency:
1) com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.10-SNAPSHOT
----------
2 required artifacts are missing.
for artifact:
com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
from the specified remote repositories:
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.kohsuke:github-api:jar:1.57-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.kohsuke -DartifactId=github-api -Dversion=1.57-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.kohsuke -DartifactId=github-api -Dversion=1.57-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[$
Path to dependency:
1) com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
2) org.kohsuke:github-api:jar:1.57-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.10-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gerrit -DartifactId=gerrit-plugin-api -Dversion=2.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gerrit -DartifactId=gerrit-plugin-api -Dversion=2.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dr$
Path to dependency:
1) com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.10-SNAPSHOT
----------
2 required artifacts are missing.
for artifact:
com.googlesource.gerrit.plugins.github:github-oauth:jar:2.10-SNAPSHOT
from the specified remote repositories:
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Jul 16 23:19:01 CEST 2014
[INFO] Final Memory: 22M/956M
[INFO] ------------------------------------------------------------------------
-----------------------------------------------
The cut and pasting might be a bit off but this is what I am receiving for errors. It appears it's not pulling the correct files to be able to carry on with the compile. Is there a way that I could just download these two JAR files and add them to the correct directories so I can carry on with a working Gerrit Installation?
Thanks in advance
X