Skip to content

Instantly share code, notes, and snippets.

@davido
Last active December 31, 2015 23:39
Show Gist options
  • Save davido/8061413 to your computer and use it in GitHub Desktop.
Save davido/8061413 to your computer and use it in GitHub Desktop.
make singleusergroup plugin to compile aganst 2.8 stable
diff --git a/pom.xml b/pom.xml
index 7336fbe..53d0088 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@ limitations under the License.
<properties>
<Gerrit-ApiType>plugin</Gerrit-ApiType>
- <Gerrit-ApiVersion>2.9-SNAPSHOT</Gerrit-ApiVersion>
+ <Gerrit-ApiVersion>2.8</Gerrit-ApiVersion>
</properties>
<build>
@@ -85,7 +85,7 @@ limitations under the License.
<repositories>
<repository>
<id>gerrit-api-repository</id>
- <url>https://gerrit-api.commondatastorage.googleapis.com/snapshot/</url>
+ <url>https://gerrit-api.commondatastorage.googleapis.com/release/</url>
</repository>
</repositories>
</project>
@davido
Copy link
Author

davido commented Dec 20, 2013

Works here, something is wrong on your site:

wget https://gerrit-api.commondatastorage.googleapis.com/release/com/google/gerrit/gerrit-plugin-api/2.8/gerrit-plugin-api-2.8.pom--2013-12-20 23:43:13--  https://gerrit-api.commondatastorage.googleapis.com/release/com/google/gerrit/gerrit-plugin-api/2.8/gerrit-plugin-api-2.8.pom
Resolving gerrit-api.commondatastorage.googleapis.com (gerrit-api.commondatastorage.googleapis.com)... 173.194.69.132, 2a00:1450:4008:c01::84
Connecting to gerrit-api.commondatastorage.googleapis.com (gerrit-api.commondatastorage.googleapis.com)|173.194.69.132|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 442 [application/octet-stream]
Saving to: `gerrit-plugin-api-2.8.pom'

100%[============================================================================================================================================>] 442         --.-K/s   in 0s

2013-12-20 23:43:14 (83.6 MB/s) - `gerrit-plugin-api-2.8.pom' saved [442/442]

@nnutter
Copy link

nnutter commented Dec 20, 2013

Strange I can get both the POM and the JAR with curl/wget. I found I can install the file to the local repository manually:

wget https://gerrit-api.commondatastorage.googleapis.com/release/com/google/gerrit/gerrit-plugin-api/2.8/gerrit-plugin-api-2.8.jar
mvn install:install-file \
    -DgroupId=com.google.gerrit \
    -DartifactId=gerrit-plugin-api \
    -Dversion=2.8 \
    -Dpackaging=jar \
    -Dfile=gerrit-plugin-api-2.8.jar

And now I can build singleusergroup! Thanks for your help!

@davido
Copy link
Author

davido commented Dec 20, 2013

weird.

@davido
Copy link
Author

davido commented Dec 20, 2013

You are wellcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment