Move local Maven repository to Google Cloud Storage

This should be faster than abusing Subversion for blob storage.
Cloud Storage is designed for objects stored and obtained by
HTTP, with no versioning overhead.

All existing content has been copied to the gerrit-maven bucket.

Change-Id: Ibc7d79e48c5e66519b2e1151a2788a0f2fd87f01
This commit is contained in:
Shawn O. Pearce
2012-06-05 17:53:13 -07:00
parent 6fe3e99bc9
commit 216b2e1ed8
2 changed files with 21 additions and 32 deletions

View File

@@ -4,43 +4,38 @@ Making a Gerrit Sub Project Release
Preparing a New Gerrit Subproject Snapshot for Publishing
---------------------------------------------------------
* You will need to have the following in the pom.xml to make it deployable to:
gerrit-maven-repository.googlecode.com
* You will need to have the following in the pom.xml to make it
deployable to the gerrit-maven storage bucket:
----
<distributionManagement>
<snapshotRepository>
<id>gerrit-snapshot-repository</id>
<name>gerrit Snapshot Repository</name>
<url>dav:https://gerrit-maven-repository.googlecode.com/svn/</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
<repository>
<id>gerrit-maven-repository</id>
<id>gerrit-maven</id>
<name>gerrit Maven Repository</name>
<url>dav:https://gerrit-maven-repository.googlecode.com/svn/</url>
<url>s3://gerrit-maven@commondatastorage.googleapis.com</url>
<uniqueVersion>true</uniqueVersion>
</repository>
</distributionManagement>
----
* Since ubuntu maven is incomplete, also add this to the pom.xml:
* Add this to the pom.xml to enable the wagon provider:
----
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav-jackrabbit</artifactId>
<version>1.0-beta-6</version>
</extension>
<extensions>
<extension>
<groupId>net.anzix.aws</groupId>
<artifactId>s3-maven-wagon</artifactId>
<version>3.2</version>
</extension>
</extensions>
</build>
----
* Add your username and password to your ~/.m2/settings.xml file:
* Add your username and password to your ~/.m2/settings.xml file.
These need to come from the link:https://code.google.com/apis/console/[API Console].
----
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
@@ -48,15 +43,9 @@ gerrit-maven-repository.googlecode.com
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>gerrit-maven-repository</id>
<username>JohnDoe@example.com</username>
<password>OpenSessame</password>
</server>
<server>
<id>gerrit-snapshot-repository</id>
<username>JohnDoe@example.com</username>
<password>OpenSessame</password>
<id>gerrit-maven</id>
<username>GOOG..EXAMPLE.....EXAMPLE</username>
<password>EXAMPLE..EXAMPLE..EXAMPLE</password>
</server>
</servers>
</settings>

View File

@@ -834,13 +834,13 @@ limitations under the License.
<repositories>
<repository>
<id>jgit-repository</id>
<url>http://download.eclipse.org/jgit/maven</url>
<id>gerrit-maven</id>
<url>https://gerrit-maven.commondatastorage.googleapis.com</url>
</repository>
<repository>
<id>gerrit-maven-repository</id>
<url>https://gerrit-maven-repository.googlecode.com/svn/</url>
<id>jgit-repository</id>
<url>http://download.eclipse.org/jgit/maven</url>
</repository>
<repository>