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 <deploymentManagement> information manually.
This commit is contained in:
@@ -40,6 +40,44 @@
|
||||
<maven.javadoc.skip>true</maven.javadoc.skip>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>snapshot</id>
|
||||
<properties>
|
||||
<dist.releaseType>snapshot</dist.releaseType>
|
||||
</properties>
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
<id>spring-snapshot</id>
|
||||
<name>Spring Snapshot Repository</name>
|
||||
<url>s3://maven.springframework.org/snapshot</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>milestone</id>
|
||||
<properties>
|
||||
<dist.releaseType>milestone</dist.releaseType>
|
||||
</properties>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>spring-milestone</id>
|
||||
<name>Spring Milestone Repository</name>
|
||||
<url>s3://maven.springframework.org/milestone</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<properties>
|
||||
<dist.releaseType>release</dist.releaseType>
|
||||
</properties>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>spring-release</id>
|
||||
<url>file://${java.io.tmpdir}/spring-integration-repo</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>staging</id>
|
||||
<distributionManagement>
|
||||
@@ -63,21 +101,12 @@
|
||||
</profiles>
|
||||
<distributionManagement>
|
||||
<!-- see 'staging' profile for dry-run deployment settings -->
|
||||
<downloadUrl>http://www.springsource.com/download/community</downloadUrl>
|
||||
<!-- see 'snapshot', 'milestone' and 'release' profiles for respective repository settings -->
|
||||
<downloadUrl>http://static.springframework.org/spring-integration/site/downloads/releases.html</downloadUrl>
|
||||
<site>
|
||||
<id>spring-docs</id>
|
||||
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-integration/docs/${project.version}</url>
|
||||
<id>static.springframework.org</id>
|
||||
<url>scp://cbeams@static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-integration/sites/${project.version}</url>
|
||||
</site>
|
||||
<repository>
|
||||
<id>spring-milestone</id>
|
||||
<name>Spring Milestone Repository</name>
|
||||
<url>s3://maven.springframework.org/milestone</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>spring-snapshot</id>
|
||||
<name>Spring Snapshot Repository</name>
|
||||
<url>s3://maven.springframework.org/snapshot</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
<dependencyManagement>
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user