Repository: camel Updated Branches: refs/heads/camel-2.12.x 74c4a3b26 -> f4446bf73
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/f4446bf7 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f4446bf7 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f4446bf7 Branch: refs/heads/camel-2.12.x Commit: f4446bf735b4d71490307eddb27d337ca33e698f Parents: 74c4a3b Author: Willem Jiang <willem.ji...@gmail.com> Authored: Fri Feb 21 11:06:49 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Fri Feb 21 11:06:49 2014 +0800 ---------------------------------------------------------------------- pom.xml | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f4446bf7/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 7648cb4..3094aa6 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>