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:
@@ -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>
|
||||
|
8
pom.xml
8
pom.xml
@@ -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>
|
||||
|
Reference in New Issue
Block a user