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 <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2014-06-04 14:13:48 +02:00
committed by Edwin Kempin
parent cf48dd7f59
commit 92c7393c3b
3 changed files with 12 additions and 18 deletions

View File

@@ -83,15 +83,13 @@ limitations under the License.
<scope>provided</scope>
</dependency>
</dependencies>
#if ($gerritApiVersion.endsWith("SNAPSHOT"))
<repositories>
<repository>
<id>gerrit-api-repository</id>
#if ($gerritApiVersion.endsWith("SNAPSHOT"))
<url>https://gerrit-api.storage.googleapis.com/snapshot/</url>
#else
<url>https://gerrit-api.storage.googleapis.com/release/</url>
#end
<id>snapshot-repository</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
#end
</project>

View File

@@ -111,15 +111,13 @@ limitations under the License.
<scope>provided</scope>
</dependency>
</dependencies>
#if ($gerritApiVersion.endsWith("SNAPSHOT"))
<repositories>
<repository>
<id>gerrit-api-repository</id>
#if ($gerritApiVersion.endsWith("SNAPSHOT"))
<url>https://gerrit-api.storage.googleapis.com/snapshot/</url>
#else
<url>https://gerrit-api.storage.googleapis.com/release/</url>
#end
<id>snapshot-repository</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
#end
</project>

View File

@@ -108,15 +108,13 @@ limitations under the License.
<scope>test</scope>
</dependency>
</dependencies>
#if ($gerritApiVersion.endsWith("SNAPSHOT"))
<repositories>
<repository>
<id>gerrit-api-repository</id>
#if ($gerritApiVersion.endsWith("SNAPSHOT"))
<url>https://gerrit-api.storage.googleapis.com/snapshot/</url>
#else
<url>https://gerrit-api.storage.googleapis.com/release/</url>
#end
<id>snapshot-repository</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
#end
</project>