Skip to content

Commit c6130cb

Browse files
committed
[Enhancement] Only use gpg plugin when releasing package (StarRocks#164)
1 parent 839dcaa commit c6130cb

File tree

2 files changed

+65
-35
lines changed

2 files changed

+65
-35
lines changed

pom.xml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -382,20 +382,6 @@ limitations under the License.
382382
</execution>
383383
</executions>
384384
</plugin>
385-
<plugin>
386-
<groupId>org.apache.maven.plugins</groupId>
387-
<artifactId>maven-gpg-plugin</artifactId>
388-
<version>1.5</version>
389-
<executions>
390-
<execution>
391-
<id>sign-artifacts</id>
392-
<phase>verify</phase>
393-
<goals>
394-
<goal>sign</goal>
395-
</goals>
396-
</execution>
397-
</executions>
398-
</plugin>
399385
<plugin>
400386
<groupId>org.sonatype.plugins</groupId>
401387
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -409,6 +395,39 @@ limitations under the License.
409395
</plugin>
410396
</plugins>
411397
</build>
398+
399+
<profiles>
400+
<profile>
401+
<id>release</id>
402+
<activation>
403+
<property>
404+
<name>release</name>
405+
</property>
406+
</activation>
407+
<properties>
408+
<target.java.version>1.8</target.java.version>
409+
</properties>
410+
<build>
411+
<plugins>
412+
<plugin>
413+
<groupId>org.apache.maven.plugins</groupId>
414+
<artifactId>maven-gpg-plugin</artifactId>
415+
<version>1.5</version>
416+
<executions>
417+
<execution>
418+
<id>sign-artifacts</id>
419+
<phase>verify</phase>
420+
<goals>
421+
<goal>sign</goal>
422+
</goals>
423+
</execution>
424+
</executions>
425+
</plugin>
426+
</plugins>
427+
</build>
428+
</profile>
429+
</profiles>
430+
412431
<distributionManagement>
413432
<snapshotRepository>
414433
<id>ossrh</id>

starrocks-stream-load-sdk/pom.xml

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -208,27 +208,6 @@
208208
</execution>
209209
</executions>
210210
</plugin>
211-
<plugin>
212-
<groupId>org.apache.maven.plugins</groupId>
213-
<artifactId>maven-gpg-plugin</artifactId>
214-
<version>1.5</version>
215-
<executions>
216-
<execution>
217-
<id>sign-artifacts</id>
218-
<phase>verify</phase>
219-
<goals>
220-
<goal>sign</goal>
221-
</goals>
222-
<configuration>
223-
# refer to https://stackoverflow.com/questions/53992950/maven-gpg-plugin-failing-with-inappropriate-ioctl-for-device-when-running-unde
224-
<gpgArguments>
225-
<arg>--pinentry-mode</arg>
226-
<arg>loopback</arg>
227-
</gpgArguments>
228-
</configuration>
229-
</execution>
230-
</executions>
231-
</plugin>
232211
<plugin>
233212
<groupId>org.sonatype.plugins</groupId>
234213
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -243,6 +222,38 @@
243222
</plugins>
244223
</build>
245224

225+
<profiles>
226+
<profile>
227+
<id>release</id>
228+
<activation>
229+
<property>
230+
<name>release</name>
231+
</property>
232+
</activation>
233+
<properties>
234+
<target.java.version>1.8</target.java.version>
235+
</properties>
236+
<build>
237+
<plugins>
238+
<plugin>
239+
<groupId>org.apache.maven.plugins</groupId>
240+
<artifactId>maven-gpg-plugin</artifactId>
241+
<version>1.5</version>
242+
<executions>
243+
<execution>
244+
<id>sign-artifacts</id>
245+
<phase>verify</phase>
246+
<goals>
247+
<goal>sign</goal>
248+
</goals>
249+
</execution>
250+
</executions>
251+
</plugin>
252+
</plugins>
253+
</build>
254+
</profile>
255+
</profiles>
256+
246257
<distributionManagement>
247258
<snapshotRepository>
248259
<id>ossrh</id>

0 commit comments

Comments
 (0)