From b03550db02899ce9a1721ea180a16f711903ae1d Mon Sep 17 00:00:00 2001 From: nk-coding Date: Fri, 28 Jun 2024 10:59:01 +0200 Subject: [PATCH] add deploy profile to not fail on verify --- .github/workflows/releaseToMavenCentral.yml | 2 +- pom.xml | 73 +++++++++++---------- 2 files changed, 41 insertions(+), 34 deletions(-) diff --git a/.github/workflows/releaseToMavenCentral.yml b/.github/workflows/releaseToMavenCentral.yml index 706b11f2..f539a447 100644 --- a/.github/workflows/releaseToMavenCentral.yml +++ b/.github/workflows/releaseToMavenCentral.yml @@ -20,7 +20,7 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE - name: Publish package - run: ./mvnw deploy + run: ./mvnw deploy -Pdeploy env: MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} diff --git a/pom.xml b/pom.xml index e64d9f95..bc5c58c9 100644 --- a/pom.xml +++ b/pom.xml @@ -18,39 +18,6 @@ project.groupId - - - org.sonatype.central - central-publishing-maven-plugin - 0.5.0 - true - - central - true - published - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.2.4 - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - @@ -132,6 +99,46 @@ + + + deploy + + + + org.sonatype.central + central-publishing-maven-plugin + 0.5.0 + true + + central + true + published + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.4 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + +