aboutsummaryrefslogtreecommitdiff
path: root/java/pom.xml
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2015-03-03 16:27:10 -0800
committerJisi Liu <jisi.liu@gmail.com>2015-03-03 16:27:10 -0800
commitb386c73c43037d2f51b713690ae7f293d2cd6f45 (patch)
tree5aaa52734a9791a11063d5371fdead9cbd94002c /java/pom.xml
parent7d5cf8d7a1bd24acce56296747731051ebe1b180 (diff)
downloadprotobuf-b386c73c43037d2f51b713690ae7f293d2cd6f45.tar.gz
protobuf-b386c73c43037d2f51b713690ae7f293d2cd6f45.tar.bz2
protobuf-b386c73c43037d2f51b713690ae7f293d2cd6f45.zip
Add a release profile for Java mvn project, which includes source file,
javadoc packaging and signing. Change-Id: I70632f01274b70e6f48dae5f4be15f123eb19a46
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 75d4c7f6..d4095664 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>