Skip to content

Commit b473de5

Browse files
committed
fix publish in CI
1 parent 3116753 commit b473de5

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

pom.xml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3-
<parent>
4-
<groupId>org.sonatype.oss</groupId>
5-
<artifactId>oss-parent</artifactId>
6-
<version>5</version>
7-
</parent>
8-
<distributionManagement/>
93
<modelVersion>4.0.0</modelVersion>
104
<groupId>io.swagger</groupId>
115
<artifactId>swagger-project</artifactId>
@@ -193,9 +187,13 @@
193187
<plugin>
194188
<groupId>org.apache.maven.plugins</groupId>
195189
<artifactId>maven-gpg-plugin</artifactId>
190+
<version>1.6</version>
196191
<configuration>
197-
<releaseProfiles>release</releaseProfiles>
198-
<goals>sign</goals>
192+
<!-- Prevent `gpg` from using pinentry programs -->
193+
<gpgArguments>
194+
<arg>--pinentry-mode</arg>
195+
<arg>loopback</arg>
196+
</gpgArguments>
199197
</configuration>
200198
</plugin>
201199
<plugin>
@@ -293,18 +291,20 @@
293291
</build>
294292
</profile>
295293
<profile>
296-
<id>release-sign-artifacts</id>
297-
<activation>
298-
<property>
299-
<name>performRelease</name>
300-
<value>true</value>
301-
</property>
302-
</activation>
294+
<id>release</id>
303295
<build>
304296
<plugins>
305297
<plugin>
306298
<groupId>org.apache.maven.plugins</groupId>
307299
<artifactId>maven-gpg-plugin</artifactId>
300+
<version>1.6</version>
301+
<configuration>
302+
<!-- Prevent `gpg` from using pinentry programs -->
303+
<gpgArguments>
304+
<arg>--pinentry-mode</arg>
305+
<arg>loopback</arg>
306+
</gpgArguments>
307+
</configuration>
308308
<executions>
309309
<execution>
310310
<id>sign-artifacts</id>
@@ -581,6 +581,7 @@
581581
</dependencies>
582582
</dependencyManagement>
583583
<properties>
584+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
584585
<maven.compiler.release>7</maven.compiler.release>
585586
<joda-version>2.2.4</joda-version>
586587
<joda-time-version>2.14.0</joda-time-version>

0 commit comments

Comments
 (0)