Add the necessary support for signing releases. A requirement for publishing to the Maven Central. (there are many hurdles to be cleared).

This commit is contained in:
Oliver Burn 2010-09-23 10:50:40 +00:00
parent 0831fb660d
commit b9a47d49d8
1 changed files with 27 additions and 0 deletions

27
pom.xml
View File

@ -455,5 +455,32 @@
</site>
</distributionManagement>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>