aboutsummaryrefslogtreecommitdiffhomepage
path: root/protoc-artifacts/pom.xml
diff options
context:
space:
mode:
authorGravatar Kun Zhang <zhangkun@google.com>2015-04-01 11:53:03 -0700
committerGravatar Kun Zhang <zhangkun@google.com>2015-04-01 11:53:03 -0700
commit18f02bc1cde4f039e8ecd85d8f2949c5c66a9d84 (patch)
tree5605ed33ee3ab3a4966f35586351e8b69983cd9b /protoc-artifacts/pom.xml
parentae9177d6453ce23ddb33927a5e88360255efa1fc (diff)
Move signing and uploading to the release profile
Diffstat (limited to 'protoc-artifacts/pom.xml')
-rw-r--r--protoc-artifacts/pom.xml59
1 files changed, 34 insertions, 25 deletions
diff --git a/protoc-artifacts/pom.xml b/protoc-artifacts/pom.xml
index 51b48c92..f7bc8818 100644
--- a/protoc-artifacts/pom.xml
+++ b/protoc-artifacts/pom.xml
@@ -83,31 +83,40 @@
</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>
+ <profiles>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <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>
+ </profiles>
</project>