From 8e63cf488d750e093081a3b3cc0974b6ebf712bb Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Wed, 4 Jun 2014 14:24:20 +0200 Subject: [PATCH 1/2] Release documentation: Add URL to Gerrit artifacts on Maven Central Released artifacts first appear in the Sonatype releases repository and are only then replicated to Maven Central. Clarify this in the release documentation. Change-Id: Ie50a41685222a4423d9fde727e5af29691ca2c8d Signed-off-by: Edwin Kempin --- Documentation/dev-release.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/dev-release.txt b/Documentation/dev-release.txt index bcb0b0fbb7..e966899397 100644 --- a/Documentation/dev-release.txt +++ b/Documentation/dev-release.txt @@ -274,11 +274,13 @@ Releasing artifacts to Maven Central cannot be undone! link:https://oss.sonatype.org/[Sonatype Nexus Server], select it and click on `Release`. +** The released artifacts are available in +https://oss.sonatype.org/content/repositories/releases/com/google/gerrit/ + ** It may take up to 2 hours until the artifacts appear on Maven Central: + -https://oss.sonatype.org/content/repositories/releases/com/google/gerrit/ - +http://central.maven.org/maven2/com/google/gerrit/ [[push-stable]] ==== Push the Stable Branch From 92c7393c3bd7d0094e4719077de6934119f06d25 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Wed, 4 Jun 2014 14:13:48 +0200 Subject: [PATCH 2/2] Update repository in pom.xml of plugin archetypes The plugin artifacts are no longer published to the Google Cloud Storage but to Maven Central. To reference released artifacts from Maven Central it is not necessary to specify a repository in the pom.xml. This is because by default Maven tries to find any artifact in Maven Central. The Gerrit snapshots artifacts are now published to the Sonatype snapshot repository [1], hence this repository must be specified in the pom.xml if snapshot artifacts are referenced. [1] https://oss.sonatype.org/content/repositories/snapshots/ Change-Id: Iac7d1b6e6957a9bcc43a42fab9d85dc111d46246 Signed-off-by: Edwin Kempin --- .../src/main/resources/archetype-resources/pom.xml | 10 ++++------ .../src/main/resources/archetype-resources/pom.xml | 10 ++++------ .../src/main/resources/archetype-resources/pom.xml | 10 ++++------ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/gerrit-plugin-archetype/src/main/resources/archetype-resources/pom.xml b/gerrit-plugin-archetype/src/main/resources/archetype-resources/pom.xml index 8060182c1a..17c972210d 100644 --- a/gerrit-plugin-archetype/src/main/resources/archetype-resources/pom.xml +++ b/gerrit-plugin-archetype/src/main/resources/archetype-resources/pom.xml @@ -83,15 +83,13 @@ limitations under the License. provided +#if ($gerritApiVersion.endsWith("SNAPSHOT")) - gerrit-api-repository -#if ($gerritApiVersion.endsWith("SNAPSHOT")) - https://gerrit-api.storage.googleapis.com/snapshot/ -#else - https://gerrit-api.storage.googleapis.com/release/ -#end + snapshot-repository + https://oss.sonatype.org/content/repositories/snapshots/ +#end diff --git a/gerrit-plugin-gwt-archetype/src/main/resources/archetype-resources/pom.xml b/gerrit-plugin-gwt-archetype/src/main/resources/archetype-resources/pom.xml index cc9c981974..098d071b44 100644 --- a/gerrit-plugin-gwt-archetype/src/main/resources/archetype-resources/pom.xml +++ b/gerrit-plugin-gwt-archetype/src/main/resources/archetype-resources/pom.xml @@ -111,15 +111,13 @@ limitations under the License. provided +#if ($gerritApiVersion.endsWith("SNAPSHOT")) - gerrit-api-repository -#if ($gerritApiVersion.endsWith("SNAPSHOT")) - https://gerrit-api.storage.googleapis.com/snapshot/ -#else - https://gerrit-api.storage.googleapis.com/release/ -#end + snapshot-repository + https://oss.sonatype.org/content/repositories/snapshots/ +#end diff --git a/gerrit-plugin-js-archetype/src/main/resources/archetype-resources/pom.xml b/gerrit-plugin-js-archetype/src/main/resources/archetype-resources/pom.xml index cc513c2f28..ac692ff3a1 100644 --- a/gerrit-plugin-js-archetype/src/main/resources/archetype-resources/pom.xml +++ b/gerrit-plugin-js-archetype/src/main/resources/archetype-resources/pom.xml @@ -108,15 +108,13 @@ limitations under the License. test +#if ($gerritApiVersion.endsWith("SNAPSHOT")) - gerrit-api-repository -#if ($gerritApiVersion.endsWith("SNAPSHOT")) - https://gerrit-api.storage.googleapis.com/snapshot/ -#else - https://gerrit-api.storage.googleapis.com/release/ -#end + snapshot-repository + https://oss.sonatype.org/content/repositories/snapshots/ +#end