Skip to content
Browse files

Don't sign the artifacts per default

Instead, use the release-sign-artifacts profile to sign.
  • Loading branch information...
1 parent 3aee5ff commit 17de4a9491ddff579c0f51cf21ca0602c63c2973 @misto misto committed
Showing with 23 additions and 14 deletions.
  1. +2 −0 build.sh
  2. +21 −14 pom.xml
View
2 build.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+# To sign the artifacts, add the release-sign-artifacts profile to the command
+
#mvn -Dscala.version=2.9.3-SNAPSHOT -P scala-2.9.x clean package $*
#mvn -Dscala.version=2.10.0-SNAPSHOT -P scala-2.10.x clean package $*
#mvn -Dscala.version=2.10.1-SNAPSHOT -P scala-2.10.x clean package $*
View
35 pom.xml
@@ -175,20 +175,6 @@
</executions>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>sign-artifacts</id>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
<!-- plugin used to extract the git hash and store it in ${buildNumber} -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
@@ -388,5 +374,26 @@
</repository>
</repositories>
</profile>
+ <profile>
+ <id>release-sign-artifacts</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.4</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>

0 comments on commit 17de4a9

Please sign in to comment.
Something went wrong with that request. Please try again.