Skip to content

Commit

Permalink
refactor: move staging plugin to ossrh profile (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsens authored May 7, 2024
1 parent 4da9adf commit d6c2bc2
Showing 1 changed file with 80 additions and 17 deletions.
97 changes: 80 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,39 +170,102 @@

<profiles>
<profile>
<id>ibissource</id>
<id>default-modules</id><!-- Profile defaults to ON, when the property is set it will turn off -->
<activation>
<property>
<name>!no-default-modules</name>
</property>
</activation>
<modules>
<module>frank-flow</module>
</modules>
</profile>

<profile>
<id>frankframework</id>
<distributionManagement>
<repository>
<id>ibissource</id>
<url>https://nexus.frankframework.org/content/repositories/frank-flow/</url>
<id>frankframework</id>
<url>https://nexus.frankframework.org/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>ibissource</id>
<url>https://nexus.frankframework.org/content/repositories/frank-flow/</url>
<id>frankframework</id>
<url>https://nexus.frankframework.org/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>www.ibissource.org</id>
<id>www.frankframework.org</id>
<url>file:target/site-deploy</url>
</site>
</distributionManagement>
<repositories>
<repository>
<id>ibissource</id>
<id>frankframework</id>
<url>https://nexus.frankframework.org/content/groups/public</url>
</repository>
</repositories>
</profile>

<profile>
<id>default-modules</id><!-- Profile defaults to ON, when the property is set it will turn off -->
<activation>
<property>
<name>!no-default-modules</name>
</property>
</activation>
<modules>
<module>frank-flow</module>
</modules>
<id>sign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
<gpgArguments>
<!-- This is necessary for gpg to not try to use the pinentry programs -->
<arg>--batch</arg>
<arg>--no-tty</arg>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ossrh</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>www.frankframework.org</id>
<url>file:target/site-deploy</url>
</site>
</distributionManagement>
</profile>
</profiles>
</project>

0 comments on commit d6c2bc2

Please sign in to comment.