From 17852dfc408deea383a88f38b2fb3f99475ebed9 Mon Sep 17 00:00:00 2001 From: Sameeul Samee Date: Sat, 8 Jun 2024 12:20:01 -0400 Subject: [PATCH] Fix gpg signing error --- .github/workflows/publish_maven.yml | 11 ++---- pom.xml | 52 +++-------------------------- 2 files changed, 7 insertions(+), 56 deletions(-) diff --git a/.github/workflows/publish_maven.yml b/.github/workflows/publish_maven.yml index 02102815..0270715b 100644 --- a/.github/workflows/publish_maven.yml +++ b/.github/workflows/publish_maven.yml @@ -21,19 +21,12 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase cache: 'maven' - - - name: Build with Maven - run: mvn clean install - - - name: Generate Javadoc - run: mvn javadoc:javadoc - - - name: Publish Package + - name: Build & Deploy run: | # -U force updates just to make sure we are using latest dependencies # -B Batch mode (do not ask for user input), just in case # -P activate profile - mvn deploy -s settings.xml + mvn -X -e -Prelease -DskipTests --batch-mode deploy env: SIGN_KEY_PASS: ${{ secrets.GPG_PASSPHRASE }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} diff --git a/pom.xml b/pom.xml index 492fdd8b..614042a2 100644 --- a/pom.xml +++ b/pom.xml @@ -89,11 +89,12 @@ attach-sources - jar + jar-no-fork + org.apache.maven.plugins maven-javadoc-plugin @@ -107,27 +108,7 @@ - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - - --batch - --pinentry-mode - loopback - - - - - + org.apache.maven.plugins maven-compiler-plugin @@ -208,31 +189,7 @@ - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.7.0 - - - attach-javadocs - - jar - - - - + maven-release-plugin ${version.maven-release-plugin} @@ -259,6 +216,7 @@ + org.sonatype.central central-publishing-maven-plugin