diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-03-04 01:49:21 +0100 |
---|---|---|
committer | Gerrit Code Review <support@gerrithub.io> | 2015-03-04 01:49:21 +0100 |
commit | c6170a96e3973c61fd062bb65ffd4e7c758b6cf0 (patch) | |
tree | 77085369f9c55cf5176442d8f8e941ad6f3d55d9 | |
parent | dfdec3b654cbf403197214f9354d9a2aff4d77d1 (diff) | |
parent | b386c73c43037d2f51b713690ae7f293d2cd6f45 (diff) | |
download | protobuf-c6170a96e3973c61fd062bb65ffd4e7c758b6cf0.tar.gz protobuf-c6170a96e3973c61fd062bb65ffd4e7c758b6cf0.tar.bz2 protobuf-c6170a96e3973c61fd062bb65ffd4e7c758b6cf0.zip |
Merge "Add a release profile for Java mvn project, which includes source file, javadoc packaging and signing."
-rw-r--r-- | java/pom.xml | 58 |
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> |