You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/02/21 15:32:19 UTC
[3/5] git commit: CAMEL-6777 Avoid building two different source
distributions
CAMEL-6777 Avoid building two different source distributions
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9d000caf
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9d000caf
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9d000caf
Branch: refs/heads/master
Commit: 9d000caf0e74c6475aa6e801c74c4ba4e685868e
Parents: 92ffd5b
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Feb 21 11:06:49 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Feb 21 22:31:35 2014 +0800
----------------------------------------------------------------------
pom.xml | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 62 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/9d000caf/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3eae81f..dbcebf2 100755
--- a/pom.xml
+++ b/pom.xml
@@ -210,7 +210,7 @@
<useReleaseProfile>false</useReleaseProfile>
<preparationGoals>clean install</preparationGoals>
<goals>deploy</goals>
- <arguments>-Papache-release,enable-schemagen,apt,sourcecheck,validate,hibernate</arguments>
+ <arguments>-Prelease,enable-schemagen,apt,sourcecheck,validate,hibernate</arguments>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
@@ -499,6 +499,67 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>release</id>
+ <activation>
+ <property>
+ <name>apache-release</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <!-- We want to deploy the artifact to a staging location for perusal -->
+ <plugin>
+ <inherited>true</inherited>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <updateReleaseInfo>true</updateReleaseInfo>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- We want to sign the artifact, the POM, and all attached artifacts -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <configuration>
+ <passphrase>${gpg.passphrase}</passphrase>
+ <useAgent>${gpg.useagent}</useAgent>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>apache-release</id>