This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release/12.0.0
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
The following commit(s) were added to refs/heads/release/12.0.0 by this push:
new a57f3bd Use `deploy:deploy` for staging distribution artifacts
a57f3bd is described below
commit a57f3bdd14956f7eb5710793fc1fb95af2e62b07
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Fri Feb 7 20:49:42 2025 +0100
Use `deploy:deploy` for staging distribution artifacts
`-P deploy` effectively uses `nexus-staging-maven-plugin`. Though
for local deployments it fails as follows:
[INFO] --- nexus-staging:1.7.0:deploy (default-deploy) @ logging-parent
---
[INFO] Performing local staging (local
stagingDirectory="/home/runner/work/logging-parent/logging-parent/target/nexus-staging/staging")...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
...
[INFO]
------------------------------------------------------------------------
Error: Failed to execute goal
org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy (default-deploy)
on project logging-parent: Execution default-deploy of goal
org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy failed: Cannot
decipher credentials to be used with Nexus!
org.sonatype.plexus.components.sec.dispatcher.shaded.SecDispatcherException:
java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such
file or directory)
Hence, explicitly opting for `maven-deploy-plugin:deploy` which
doesn't suffer from this problem.
---
.github/workflows/deploy-release-reusable.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/deploy-release-reusable.yaml
b/.github/workflows/deploy-release-reusable.yaml
index f4a3a33..6c2e852 100644
--- a/.github/workflows/deploy-release-reusable.yaml
+++ b/.github/workflows/deploy-release-reusable.yaml
@@ -209,8 +209,7 @@ jobs:
./mvnw \
--show-version --batch-mode --errors --no-transfer-progress \
-DaltDeploymentRepository=apache.releases.https::file:"$ALT_DEPLOYMENT_REPO_FILEPATH"
\
- -Dsign.skip \
- -P deploy
+ deploy:deploy
# This regex needs to work for both Java (`distribution` profile)
and `find` (while counting attachments)!
# Hence, we don't escape dots, etc. with backslashes, which is
problematic to get working in both worlds.