aboutsummaryrefslogtreecommitdiffhomepage
path: root/java/pom.xml
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2015-03-04 01:49:21 +0100
committerGravatar Gerrit Code Review <support@gerrithub.io>2015-03-04 01:49:21 +0100
commitc6170a96e3973c61fd062bb65ffd4e7c758b6cf0 (patch)
tree77085369f9c55cf5176442d8f8e941ad6f3d55d9 /java/pom.xml
parentdfdec3b654cbf403197214f9354d9a2aff4d77d1 (diff)
parentb386c73c43037d2f51b713690ae7f293d2cd6f45 (diff)
Merge "Add a release profile for Java mvn project, which includes source file, javadoc packaging and signing."
Diffstat (limited to 'java/pom.xml')
-rw-r--r--java/pom.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/java/pom.xml b/java/pom.xml
index 2d1c05a0..3eb7a703 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -160,6 +160,64 @@
</build>
<profiles>
<profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.2.1</version>
+ <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>
+ <version>2.9.1</version>
+ <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>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>nexus-staging-maven-plugin</artifactId>
+ <version>1.6.3</version>
+ <extensions>true</extensions>
+ <configuration>
+ <serverId>sonatype-nexus-staging</serverId>
+ <nexusUrl>https://oss.sonatype.org/</nexusUrl>
+ <autoReleaseAfterClose>false</autoReleaseAfterClose>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>lite</id>
<build>
<plugins>