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 2094d86 commit 5d0640f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
7 changes: 3 additions & 4 deletions DEPLOY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,15 @@ Sonatype OSS Staging 库管理: https://oss.sonatype.org/

1. 确保所有源代码提交
2. checkout要发布的分支,例如:git checkout dev-3.0.8
3. 分别发布parent和dist目录下的项目
3. 分别项目

cd citrus
mvn clean deploy -N -Pdeployment -Ddeployment.skip=false

mvn clean deploy -Pdeployment

确保使用deployment profile,以便生成sonatype所需要的数字签名。
并非所有子项目都会被发布,只有那些 maven-deploy-plugin.skip=false 的项目才会被发布。

4. 如果还需要发布其余的分支,切换到该分支,并重作2-4
4. 如果还需要发布其余的分支,切换到该分支,并重作2-3
5. 在应用中测试staging库,用sonatype profile,例如在应用的目录下执行:mvn jetty:run -Psonatype
6. 在sonatype管理界面中promote项目到central maven repository
7. 对发布版本创建tags
Expand Down
5 changes: 1 addition & 4 deletions dist/springext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
<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>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- 发布此项目 -->
<skip>false</skip>
</configuration>
</plugin>
Expand Down
5 changes: 1 addition & 4 deletions dist/test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
<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>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- 发布此项目 -->
<skip>false</skip>
</configuration>
</plugin>
Expand Down
5 changes: 1 addition & 4 deletions dist/webx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
<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>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- 发布此项目 -->
<skip>false</skip>
</configuration>
</plugin>
Expand Down
13 changes: 4 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
<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 @@ -587,13 +586,6 @@
</dependencyManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
Expand Down Expand Up @@ -695,8 +687,10 @@
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<skip>${deployment.skip}</skip>
<!-- 发布parent项目 -->
<skip>false</skip>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -731,6 +725,7 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<!-- 默认不发布 -->
<skip>true</skip>
</configuration>
</plugin>
Expand Down

0 comments on commit 5d0640f

Please sign in to comment.