From 8d9046825e1fec6cc6da7d8df2c01a44cb996f93 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Thu, 2 Sep 2010 15:57:58 +0000 Subject: [PATCH] Add Maven profiles to ease deployment (INT-1404) Use one of the following as appropriate when deploying the project: * mvn deploy -Psnapshot * mvn deploy -Pmilestone * mvn deploy -Prelease These profiles ensure that artifacts are uploaded to the right repositories without requiring the buildmaster to change information manually. --- pom.xml | 49 +++++++++++++++++++++------ spring-integration-parent/pom.xml | 55 +++++++++++++++++++++++-------- 2 files changed, 81 insertions(+), 23 deletions(-) diff --git a/pom.xml b/pom.xml index 48fe40974d..a65b7a5dd3 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,6 @@ Spring Integration INT ${project.version} - snapshot ${dist.id}-${dist.version} ${dist.finalName}.zip target/${dist.fileName} @@ -53,6 +52,44 @@ --> + + snapshot + + snapshot + + + + spring-snapshot + Spring Snapshot Repository + s3://maven.springframework.org/snapshot + + + + + milestone + + milestone + + + + spring-milestone + Spring Milestone Repository + s3://maven.springframework.org/milestone + + + + + release + + release + + + + spring-release + file://${java.io.tmpdir}/spring-integration-repo + + + staging @@ -73,16 +110,8 @@ + http://static.springframework.org/spring-integration/site/downloads/releases.html - - local - file://${java.io.tmpdir}/spring-integration-repo - - - spring-snapshot - Spring Snapshot Repository - s3://maven.springframework.org/snapshot - static.springframework.org scp://cbeams@static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-integration/sites/${project.version} diff --git a/spring-integration-parent/pom.xml b/spring-integration-parent/pom.xml index cb46a8ce21..38b448079f 100644 --- a/spring-integration-parent/pom.xml +++ b/spring-integration-parent/pom.xml @@ -40,6 +40,44 @@ true + + snapshot + + snapshot + + + + spring-snapshot + Spring Snapshot Repository + s3://maven.springframework.org/snapshot + + + + + milestone + + milestone + + + + spring-milestone + Spring Milestone Repository + s3://maven.springframework.org/milestone + + + + + release + + release + + + + spring-release + file://${java.io.tmpdir}/spring-integration-repo + + + staging @@ -63,21 +101,12 @@ - http://www.springsource.com/download/community + + http://static.springframework.org/spring-integration/site/downloads/releases.html - spring-docs - scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-integration/docs/${project.version} + static.springframework.org + scp://cbeams@static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-integration/sites/${project.version} - - spring-milestone - Spring Milestone Repository - s3://maven.springframework.org/milestone - - - spring-snapshot - Spring Snapshot Repository - s3://maven.springframework.org/snapshot -