Updated Branches: refs/heads/3.0.0-incubating 5aebc81af -> 1d6fc2f72
Adding release profile and cumstomize Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/1d6fc2f7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/1d6fc2f7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/1d6fc2f7 Branch: refs/heads/3.0.0-incubating Commit: 1d6fc2f729267f303a60f2c883f74d51f14f8e75 Parents: 5aebc81 Author: Lahiru Sandaruwan <[email protected]> Authored: Tue Oct 8 20:42:10 2013 +0530 Committer: Lahiru Sandaruwan <[email protected]> Committed: Tue Oct 8 20:42:10 2013 +0530 ---------------------------------------------------------------------- pom.xml | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/1d6fc2f7/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 688c662..2a7b641 100644 --- a/pom.xml +++ b/pom.xml @@ -306,6 +306,94 @@ </build> </profile> <!-- END SNIPPET: addLicense-profile --> + <!-- START SNIPPET: release-profile --> + <profile> + <id>apache-release</id> + <build> + <plugins> + <!-- Create a source-release artifact that contains the fully buildable + project directory source structure. This is the artifact which is + the official subject of any release vote. --> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <dependencies> + <dependency> + <groupId>org.apache.apache.resources</groupId> + <artifactId>apache-source-release-assembly-descriptor</artifactId> + <version>1.0.4</version> + </dependency> + </dependencies> + <executions> + <execution> + <id>source-release-assembly</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot> + <descriptorRefs> + <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef> + </descriptorRefs> + <tarLongFileFormat>gnu</tarLongFileFormat> + </configuration> + </execution> + </executions> + </plugin> + <!-- 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-no-fork</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> + <!-- END SNIPPET: release-profile --> + </profiles> <pluginRepositories> @@ -394,7 +482,19 @@ </instructions>--> </configuration> </plugin> - </plugins> + <!-- START SNIPPET: release-plugin-configuration --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.3.2</version> + <configuration> + <useReleaseProfile>false</useReleaseProfile> + <goals>deploy</goals> + <arguments>-Papache-release ${arguments}</arguments> + </configuration> + </plugin> + <!-- END SNIPPET: release-plugin-configuration --> + </plugins> </pluginManagement> </build>
