aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2013-03-12 08:29:01 +0100
committerEric Hartmann <hartmann.eric@gmail.com>2013-03-12 08:29:01 +0100
commitcc11d5ba5231d8c3fae02b10f99ca3d5c2e0dd6a (patch)
treee59cec15788a727fcdb9c0aa3b736a49c4c6952a /pom.xml
parent1af9b309b2daea9699218db6532bff44a9840538 (diff)
downloadsonar-scanner-cli-cc11d5ba5231d8c3fae02b10f99ca3d5c2e0dd6a.tar.gz
sonar-scanner-cli-cc11d5ba5231d8c3fae02b10f99ca3d5c2e0dd6a.zip
Add release profile to sign and deploy javadoc
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 3765645..20c328e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,4 +57,40 @@
<sonar.buildVersion>3.5-RC3</sonar.buildVersion>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
</properties>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <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>
+ <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>