diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-03-03 16:27:10 -0800 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2015-03-03 16:27:10 -0800 |
commit | b386c73c43037d2f51b713690ae7f293d2cd6f45 (patch) | |
tree | 5aaa52734a9791a11063d5371fdead9cbd94002c | |
parent | 7d5cf8d7a1bd24acce56296747731051ebe1b180 (diff) | |
download | protobuf-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
-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 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> |