I am trying to build a github plugin and ran into issues. This is what I did:
# git clone https://gerrit.googlesource.com/plugins/github
# cd github
# mvn install
...
[ERROR] Failed to execute goal on project github-oauth: Could not resolve dependencies for project com.googlesource.gerrit.plugins.github:github-oauth:jar:2.8-SNAPSHOT: The following artifacts could not be resolved: com.google.gerrit:gerrit-plugin-api:jar:2.8-SNAPSHOT, org.kohsuke:github-api:jar:1.44-SNAPSHOT: Failure to find com.google.gerrit:gerrit-plugin-api:jar:2.8-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]
Any idea? Seems that gerrit moved from 2.8 development and 2.8-SNAPSHOT and 1.44-SNAPSHOT cannot be resolved.
--
--
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/groups/opt_out.
Hi Nenad,I found a problem on the master branch (one extra parameter in ChangeControl) and fixed it.Try to fetch:git fetch https://gerrit.googlesource.com/plugins/github refs/changes/35/54035/2 && git checkout FETCH_HEAD... and build against 2.9-SNAPSHOT (current master).HTH.Luca.On 26 Jan 2014, at 17:11, Nenad Vukicevic <nvuki...@gmail.com> wrote:NenadThanks in advance,Luca, I got side tracked from this. At the end I got the following errors:I installed gerrit from the source tree (the latest, I guess that is 2.9).
[INFO] Gerrit Code Review - GitHub integration ........... SUCCESS [0.289s]
[INFO] Gerrit Code Review - GitHub OAuth login ........... SUCCESS [1.911s]
[INFO] Gerrit Code Review - GitHub plugin ................ FAILURE [1.122s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.505s
[INFO] Finished at: Sun Jan 26 09:09:23 PST 2014
[INFO] Final Memory: 33M/723M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project github-plugin: Compilation failure: Compilation failure:
[ERROR] /a/gerrit/github/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/InitGitHub.java:[55,2] error: method does not override or implement a method from a supertype
[ERROR] /a/gerrit/github/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java:[201,31] error: method create in interface Factory cannot be applied to given types;
On Wed, Jan 22, 2014 at 11:09 AM, Nenad Vukicevic <nvuki...@gmail.com> wrote:
Compiling now.I changed 1.48-SNAPSHOT to 1.49 for kohsuke and that worked.Also, added gerritforge.com/snapshot as a repository and was able to resolve the other issue.
On Wed, Jan 22, 2014 at 11:07 AM, Nenad Vukicevic <nvuki...@gmail.com> wrote:
NenadThanks for your help.The other pathdoes not exists. But, 1.49/github-api-1.49.jar does exist.Luca, I applied changes, however still have issues:Note that the path:
[INFO] ------------------------------------------------------------------------
[INFO] Building Gerrit Code Review - GitHub OAuth login 2.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.jenkins-ci.org/public/com/google/gerrit/gerrit-plugin-api/2.8-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.jenkins-ci.org/public/com/google/gerrit/gerrit-plugin-api/2.8-SNAPSHOT/gerrit-plugin-api-2.8-SNAPSHOT.pom
[WARNING] The POM for com.google.gerrit:gerrit-plugin-api:jar:2.8-SNAPSHOT is missing, no dependency information available
Downloading: http://repo.jenkins-ci.org/public/org/kohsuke/github-api/1.48-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.jenkins-ci.org/public/org/kohsuke/github-api/1.48-SNAPSHOT/github-api-1.48-SNAPSHOT.pom
[WARNING] The POM for org.kohsuke:github-api:jar:1.48-SNAPSHOT is missing, no dependency information available
Downloading: http://repo.jenkins-ci.org/public/com/google/gerrit/gerrit-plugin-api/2.8-SNAPSHOT/gerrit-plugin-api-2.8-SNAPSHOT.jar
Downloading: http://repo.jenkins-ci.org/public/org/kohsuke/github-api/1.48-SNAPSHOT/github-api-1.48-SNAPSHOT.jar
http://repo.jenkins-ci.org/public/org/kohsuke/github-api/1.48-SNAPSHOT/github-api-1.48-SNAPSHOT.jar
http://repo.jenkins-ci.org/public/com/google/gerrit/gerrit-plugin-api/2.8-SNAPSHOT/gerrit-plugin-api-2.8-SNAPSHOT.pom does not exists at all. Directory gerrit under google does not exists, like the whole thing was moved somewhere else:
http://repo.jenkins-ci.org/public/com/google/gerrit/
I tried going through the whole process again, a fairly accurate work log:
https://gist.github.com/nnutter/8684238
I had to make several changes:
gerrit diff: https://gist.github.com/nnutter/8684271