Skip to content

Commit 54d3dcd

Browse files
committed
Abandon "fancy" approach
1 parent 6ff07f8 commit 54d3dcd

File tree

1 file changed

+23
-38
lines changed

1 file changed

+23
-38
lines changed

pom.xml

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,24 @@
151151
</execution>
152152
</executions>
153153
</plugin>
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-gpg-plugin</artifactId>
157+
<executions>
158+
<execution>
159+
<id>sign-artifacts</id>
160+
<phase>verify</phase>
161+
<goals>
162+
<goal>sign</goal>
163+
</goals>
164+
<configuration>
165+
<keyname>${gpg.keyname}</keyname>
166+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
167+
<skip>${skipSigning}</skip>
168+
</configuration>
169+
</execution>
170+
</executions>
171+
</plugin>
154172
<plugin>
155173
<groupId>org.sonatype.plugins</groupId>
156174
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -166,7 +184,7 @@
166184
<artifactId>maven-release-plugin</artifactId>
167185
<configuration>
168186
<autoVersionSubmodules>true</autoVersionSubmodules>
169-
<!-- <useReleaseProfile>false</useReleaseProfile> -->
187+
<useReleaseProfile>false</useReleaseProfile>
170188
<releaseProfiles>release</releaseProfiles>
171189
<goals>deploy</goals>
172190
</configuration>
@@ -176,43 +194,10 @@
176194

177195
<profiles>
178196
<profile>
179-
<id>release-sign-artifacts</id>
180-
<activation>
181-
<property>
182-
<name>performRelease</name>
183-
<value>true</value>
184-
</property>
185-
</activation>
186-
<build>
187-
<pluginManagement>
188-
<plugins>
189-
<plugin>
190-
<groupId>org.apache.maven.plugins</groupId>
191-
<artifactId>maven-release-plugin</artifactId>
192-
<version>${release-plugin.version}</version>
193-
</plugin>
194-
</plugins>
195-
</pluginManagement>
196-
<plugins>
197-
<plugin>
198-
<groupId>org.apache.maven.plugins</groupId>
199-
<artifactId>maven-gpg-plugin</artifactId>
200-
<executions>
201-
<execution>
202-
<id>sign-artifacts</id>
203-
<phase>install</phase>
204-
<goals>
205-
<goal>sign</goal>
206-
</goals>
207-
<configuration>
208-
<keyname>${gpg.keyname}</keyname>
209-
<passphraseServerId>${gpg.keyname}</passphraseServerId>
210-
</configuration>
211-
</execution>
212-
</executions>
213-
</plugin>
214-
</plugins>
215-
</build>
197+
<id>signing</id>
198+
<properties>
199+
<skipSigning>false</skipSigning>
200+
</properties>
216201
</profile>
217202
</profiles>
218203
<version>1.6.0-SNAPSHOT</version>

0 commit comments

Comments
 (0)