Skip to content

Commit f8dac60

Browse files
Fixed Travis CI build problem (#20)
* Update .travis.yml * Fixing travis-ci build * Update .travis.yml
1 parent 6e88475 commit f8dac60

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

pom.xml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,35 @@
127127
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
128128
</repository>
129129
</distributionManagement>
130+
<profiles>
131+
<profile>
132+
<id>release-sign-artifacts</id>
133+
<activation>
134+
<property>
135+
<name>performRelease</name>
136+
<value>true</value>
137+
</property>
138+
</activation>
139+
<build>
140+
<plugins>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-gpg-plugin</artifactId>
144+
<version>1.5</version>
145+
<executions>
146+
<execution>
147+
<id>sign-artifacts</id>
148+
<phase>verify</phase>
149+
<goals>
150+
<goal>sign</goal>
151+
</goals>
152+
</execution>
153+
</executions>
154+
</plugin>
155+
</plugins>
156+
</build>
157+
</profile>
158+
</profiles>
130159
<build>
131160
<plugins>
132161
<plugin>
@@ -166,20 +195,6 @@
166195
</execution>
167196
</executions>
168197
</plugin>
169-
<plugin>
170-
<groupId>org.apache.maven.plugins</groupId>
171-
<artifactId>maven-gpg-plugin</artifactId>
172-
<version>1.5</version>
173-
<executions>
174-
<execution>
175-
<id>sign-artifacts</id>
176-
<phase>verify</phase>
177-
<goals>
178-
<goal>sign</goal>
179-
</goals>
180-
</execution>
181-
</executions>
182-
</plugin>
183198
<plugin>
184199
<artifactId>maven-surefire-plugin</artifactId>
185200
<version>2.19</version>

0 commit comments

Comments
 (0)