You need to build the plugin-api jar file.
Clone the Gerrit git and then:
$ cd gerrit-plugin-api/
$ mvn clean install
From: repo-d...@googlegroups.com [mailto:repo-d...@googlegroups.com] On Behalf Of Bill McCormick
Sent: Friday, April 05, 2013 7:41 AM
To: repo-d...@googlegroups.com
Cc: Bill McCormick
Subject: Re: how to install gerrit plugin
So I installed maven2 and ran mvn clean package ... output below. This is all new to me, so I'm not sure how/from where to "Try downloading the file manually from the project website." There appears to be nothing relevant at http://code.google.com/p/gerrit/downloads/list. Any hand-holding help appreciated. Thanks!!
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Delete Project Gerrit Plugin
[INFO] task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set: /home/bill/delete-project/target (included: [**], excluded: [])
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
Downloading: https://gerrit-api.commondatastorage.googleapis.com/release//com/google/gerrit/gerrit-plugin-api/2.7-SNAPSHOT/gerrit-plugin-api-2.7-SNAPSHOT.pom
[INFO] Unable to find resource 'com.google.gerrit:gerrit-plugin-api:pom:2.7-SNAPSHOT' in repository gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/release/)
Downloading: https://gerrit-api.commondatastorage.googleapis.com/release//com/google/gerrit/gerrit-plugin-api/2.7-SNAPSHOT/gerrit-plugin-api-2.7-SNAPSHOT.jar
[INFO] Unable to find resource 'com.google.gerrit:gerrit-plugin-api:jar:2.7-SNAPSHOT' in repository gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/release/)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.google.gerrit:gerrit-plugin-api:jar:2.7-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.7-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.7-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.google.gerrit.plugins:delete-project:jar:1.1-SNAPSHOT
2) com.google.gerrit:gerrit-plugin-api:jar:2.7-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.google.gerrit.plugins:delete-project:jar:1.1-SNAPSHOT
from the specified remote repositories:
gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/release/),
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Apr 04 17:32:42 CDT 2013
[INFO] Final Memory: 14M/105M
[INFO] ------------------------------------------------------------------------
--
--
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.