Skip to content

Commit d2c4157

Browse files
committed
Don't try to sign artifacts during Travis build
1 parent 9feb54c commit d2c4157

2 files changed

Lines changed: 26 additions & 16 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ clean:
1010
rm -rf target
1111

1212
deploy:
13-
mvn clean deploy
13+
mvn clean deploy -P deploy-env
14+

pom.xml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,6 @@
115115
</configuration>
116116
</plugin>
117117

118-
<plugin>
119-
<groupId>org.apache.maven.plugins</groupId>
120-
<artifactId>maven-gpg-plugin</artifactId>
121-
<version>1.6</version>
122-
<executions>
123-
<execution>
124-
<id>sign-artifacts</id>
125-
<phase>verify</phase>
126-
<goals>
127-
<goal>sign</goal>
128-
</goals>
129-
</execution>
130-
</executions>
131-
</plugin>
132-
133118
</plugins>
134119
</build>
135120

@@ -154,4 +139,28 @@
154139
<url>http://github.com/crew102/rapidrake-java/tree/master</url>
155140
</scm>
156141

142+
<profiles>
143+
<profile>
144+
<id>deploy-env</id>
145+
<build>
146+
<plugins>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-gpg-plugin</artifactId>
150+
<version>1.6</version>
151+
<executions>
152+
<execution>
153+
<id>sign-artifacts</id>
154+
<phase>verify</phase>
155+
<goals>
156+
<goal>sign</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
</plugins>
162+
</build>
163+
</profile>
164+
</profiles>
165+
157166
</project>

0 commit comments

Comments
 (0)