Skip to content

Commit d6c2bc2

Browse files
authored
refactor: move staging plugin to ossrh profile (#1314)
1 parent 4da9adf commit d6c2bc2

File tree

1 file changed

+80
-17
lines changed

1 file changed

+80
-17
lines changed

pom.xml

Lines changed: 80 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -170,39 +170,102 @@
170170

171171
<profiles>
172172
<profile>
173-
<id>ibissource</id>
173+
<id>default-modules</id><!-- Profile defaults to ON, when the property is set it will turn off -->
174+
<activation>
175+
<property>
176+
<name>!no-default-modules</name>
177+
</property>
178+
</activation>
179+
<modules>
180+
<module>frank-flow</module>
181+
</modules>
182+
</profile>
183+
184+
<profile>
185+
<id>frankframework</id>
174186
<distributionManagement>
175187
<repository>
176-
<id>ibissource</id>
177-
<url>https://nexus.frankframework.org/content/repositories/frank-flow/</url>
188+
<id>frankframework</id>
189+
<url>https://nexus.frankframework.org/content/repositories/releases</url>
178190
</repository>
179191
<snapshotRepository>
180-
<id>ibissource</id>
181-
<url>https://nexus.frankframework.org/content/repositories/frank-flow/</url>
192+
<id>frankframework</id>
193+
<url>https://nexus.frankframework.org/content/repositories/snapshots</url>
182194
</snapshotRepository>
183195
<site>
184-
<id>www.ibissource.org</id>
196+
<id>www.frankframework.org</id>
185197
<url>file:target/site-deploy</url>
186198
</site>
187199
</distributionManagement>
188200
<repositories>
189201
<repository>
190-
<id>ibissource</id>
202+
<id>frankframework</id>
191203
<url>https://nexus.frankframework.org/content/groups/public</url>
192204
</repository>
193205
</repositories>
194206
</profile>
195-
196207
<profile>
197-
<id>default-modules</id><!-- Profile defaults to ON, when the property is set it will turn off -->
198-
<activation>
199-
<property>
200-
<name>!no-default-modules</name>
201-
</property>
202-
</activation>
203-
<modules>
204-
<module>frank-flow</module>
205-
</modules>
208+
<id>sign</id>
209+
<build>
210+
<plugins>
211+
<plugin>
212+
<groupId>org.apache.maven.plugins</groupId>
213+
<artifactId>maven-gpg-plugin</artifactId>
214+
<version>3.2.4</version>
215+
<configuration>
216+
<passphrase>${gpg.passphrase}</passphrase>
217+
<gpgArguments>
218+
<!-- This is necessary for gpg to not try to use the pinentry programs -->
219+
<arg>--batch</arg>
220+
<arg>--no-tty</arg>
221+
<arg>--pinentry-mode</arg>
222+
<arg>loopback</arg>
223+
</gpgArguments>
224+
</configuration>
225+
<executions>
226+
<execution>
227+
<id>sign-artifacts</id>
228+
<phase>verify</phase>
229+
<goals>
230+
<goal>sign</goal>
231+
</goals>
232+
</execution>
233+
</executions>
234+
</plugin>
235+
</plugins>
236+
</build>
237+
</profile>
238+
<profile>
239+
<id>ossrh</id>
240+
<build>
241+
<plugins>
242+
<plugin>
243+
<groupId>org.sonatype.plugins</groupId>
244+
<artifactId>nexus-staging-maven-plugin</artifactId>
245+
<version>1.6.13</version>
246+
<extensions>true</extensions>
247+
<configuration>
248+
<serverId>ossrh</serverId>
249+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
250+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
251+
</configuration>
252+
</plugin>
253+
</plugins>
254+
</build>
255+
<distributionManagement>
256+
<repository>
257+
<id>ossrh</id>
258+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
259+
</repository>
260+
<snapshotRepository>
261+
<id>ossrh</id>
262+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
263+
</snapshotRepository>
264+
<site>
265+
<id>www.frankframework.org</id>
266+
<url>file:target/site-deploy</url>
267+
</site>
268+
</distributionManagement>
206269
</profile>
207270
</profiles>
208271
</project>

0 commit comments

Comments
 (0)