From dbdacf6880cf2ad9e5ec03d4043ad3391db3fde9 Mon Sep 17 00:00:00 2001 From: tomas-muller Date: Wed, 13 Apr 2022 14:44:50 +0200 Subject: [PATCH] Maven Build: Packages - only publish to Nexus Reporistory Manager (sonatype) when ossrh profile is enabled (publish to GitHub otherwise) --- pom.xml | 62 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 2b630394..f742c12b 100644 --- a/pom.xml +++ b/pom.xml @@ -348,25 +348,65 @@ + + ossrh + + gpg + + + + ossrh + Central Repository OSSRH + https://oss.sonatype.org/content/repositories/snapshots + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + --pinentry-mode + loopback + + + + + + UTF-8 - - org.sonatype.oss - oss-parent - 7 - - -