Skip to content

Commit

Permalink
改进发布过程
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Zhou committed Jan 23, 2013
1 parent 729fbf6 commit 39197fb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 13 deletions.
21 changes: 8 additions & 13 deletions DEPLOY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,18 @@ Sonatype OSS Staging 库管理: https://oss.sonatype.org/

1. 确保所有源代码提交
2. checkout要发布的分支,例如:git checkout dev-3.0.8
3. 编译并测试整个项目:mvn clean install
4. 分别发布parent和dist目录下的项目:
3. 分别发布parent和dist目录下的项目:

cd citrus
mvn clean deploy -N -Pdeployment

cd dist/test
mvn clean deploy -N -Pdeployment
mvn clean deploy -N -Pdeployment -Ddeployment.skip=false

cd ../../dist/webx
mvn clean deploy -N -Pdeployment

确保使用deployment profile,以便生成sonatype所需要的数字签名。

5. 如果还需要发布其余的分支,切换到该分支,并重作2-4
6. 在应用中测试staging库,用sonatype profile,例如在应用的目录下执行:mvn jetty:run -Psonatype
7. 在sonatype管理界面中promote项目到central maven repository
8. 对发布版本创建tags
9. 删除已发布的分支
10. 创建新的开发分支
4. 如果还需要发布其余的分支,切换到该分支,并重作2-4
5. 在应用中测试staging库,用sonatype profile,例如在应用的目录下执行:mvn jetty:run -Psonatype
6. 在sonatype管理界面中promote项目到central maven repository
7. 对发布版本创建tags
8. 删除已发布的分支
9. 创建新的开发分支
4 changes: 4 additions & 0 deletions dist/springext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>citrus-springext-all</artifactId>
<name>SpringExt All-in-one Bundle</name>
<properties>
<!-- 发布此项目 -->
<deployment.skip>false</deployment.skip>
</properties>
<build>
<plugins>
<plugin>
Expand Down
4 changes: 4 additions & 0 deletions dist/test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>citrus-test-all</artifactId>
<name>Test Utils for Webx</name>
<properties>
<!-- 发布此项目 -->
<deployment.skip>false</deployment.skip>
</properties>
<build>
<plugins>
<plugin>
Expand Down
4 changes: 4 additions & 0 deletions dist/webx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>citrus-webx-all</artifactId>
<name>Webx All-in-one Bundle</name>
<properties>
<!-- 发布此项目 -->
<deployment.skip>false</deployment.skip>
</properties>
<build>
<plugins>
<plugin>
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<maven-util-version>1.1</maven-util-version>
<jetty-version>8.1.7.v20120910</jetty-version>
<project.build.sourceEncoding>${java.encoding}</project.build.sourceEncoding>
<deployment.skip>true</deployment.skip>
<gpg.skip>true</gpg.skip>
</properties>
<profiles>
Expand Down Expand Up @@ -692,6 +693,12 @@
<groupId>com.alibaba.citrus.tool</groupId>
<artifactId>springext-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>${deployment.skip}</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
Expand Down

0 comments on commit 39197fb

Please sign in to comment.