This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 8f4267ba41 INFRA-23225 Fix Maven deploy goal, hopefully.
8f4267ba41 is described below

commit 8f4267ba41de61bd8283dc8807007f75c7d7eefb
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Fri May 6 22:58:35 2022 +0200

    INFRA-23225 Fix Maven deploy goal, hopefully.
---
 .github/workflows/build.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 9bd33c92b2..02539af6a2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -138,6 +138,8 @@ jobs:
       - name: Maven "deploy"
         timeout-minutes: 15
         shell: bash
+        # `package install:install deploy:deploy` goal is needed to deploy 
without configuring the plugin in the POM.
+        # For details see: 
https://maven.apache.org/plugins/maven-gpg-plugin/examples/deploy-signed-artifacts.html
         run: |
           ./mvnw \
             --show-version --batch-mode --errors --no-transfer-progress \
@@ -146,7 +148,7 @@ jobs:
             -DdeployAtEnd=true \
             --settings .github/workflows/maven-settings.xml \
             --global-toolchains ".github/workflows/maven-toolchains.xml" \
-            deploy
+            package install:install deploy:deploy
         env:
           NEXUS_USER: ${{ secrets.NEXUS_USER }}
           NEXUS_PW: ${{ secrets.NEXUS_PW }}

Reply via email to