diff options
author | Julien Eluard <[email protected]> | 2010-11-16 22:24:41 +0100 |
---|---|---|
committer | Julien Eluard <[email protected]> | 2010-11-16 22:24:41 +0100 |
commit | 819dd8f8647a90eb1ea505618b98c4c910e678c9 (patch) | |
tree | 7bea55612484907a8816140095c13957be627889 | |
parent | 5a41c8bbff8a792864d2358615156ceebecc6058 (diff) |
Moved gpg plugin to profiles.
-rw-r--r-- | pom.xml | 61 |
1 files changed, 48 insertions, 13 deletions
@@ -22,6 +22,10 @@ <version>5</version> </parent> + <modules> + <module>api</module> + <module>enforcer-rule</module> + </modules> <licenses> <license> @@ -49,16 +53,18 @@ <url>http://github.com/jeluard/semantic-versioning/issues</url> </issueManagement> + <distributionManagement> + <site> + <id>gh-pages</id> + <url>file://${gh-pages-dir}</url> + </site> + </distributionManagement> + <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <gh-pages-dir>${project.basedir}/../semantic-versioning-gh-pages</gh-pages-dir> </properties> - <modules> - <module>api</module> - <module>enforcer-rule</module> - </modules> - <build> <plugins> <plugin> @@ -146,6 +152,14 @@ </target> </configuration> </plugin> + <plugin> + <artifactId>maven-release-plugin</artifactId> + <version>2.1</version> + <configuration> + <mavenExecutorId>forked-path</mavenExecutorId> + </configuration> + </plugin> + </plugins> </build> @@ -169,15 +183,36 @@ <plugin> <artifactId>maven-javadoc-plugin</artifactId> </plugin> - </plugins> </reporting> - - <distributionManagement> - <site> - <id>gh-pages</id> - <url>file://${gh-pages-dir}</url> - </site> - </distributionManagement> + + <profiles> + <profile> + <id>release-sign-artifacts</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-gpg-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
\ No newline at end of file |