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

pkarwasz pushed a commit to branch fix/distribution-attachments
in repository https://gitbox.apache.org/repos/asf/logging-parent.git

commit f7d22b27a24d508b301ab6132c40311ef0a82de8
Author: Piotr P. Karwasz <pkarwasz-git...@apache.org>
AuthorDate: Tue Jun 3 14:37:43 2025 +0200

    Fix staging of binary distribution archive
    
    Due to the replacement of Maven Deploy Plugin with Nexus Staging Plugin, 
the staging process of the binary distribution archive fails.
    
    Since the Nexus Staging Plugin also creates a local staging folder in 
`target/nexus-staging/staging`, this change simply reuses the already existing 
folder to retrieve all the published artifacts.
---
 .github/workflows/deploy-release-reusable.yaml     | 9 ++-------
 src/changelog/.12.x.x/distribution-attachments.xml | 8 ++++++++
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/deploy-release-reusable.yaml 
b/.github/workflows/deploy-release-reusable.yaml
index 98215e9..0f4fb3c 100644
--- a/.github/workflows/deploy-release-reusable.yaml
+++ b/.github/workflows/deploy-release-reusable.yaml
@@ -203,13 +203,8 @@ jobs:
       - name: Stage distribution attachments
         shell: bash
         run: |
-          # Dump deployed artifacts to a local folder
-          export ALT_DEPLOYMENT_REPO_FILEPATH="target/alt-deployment-repo"
-          mkdir "$ALT_DEPLOYMENT_REPO_FILEPATH"
-          ./mvnw \
-            --show-version --batch-mode --errors --no-transfer-progress \
-            
-DaltDeploymentRepository=apache.releases.https::file:"$ALT_DEPLOYMENT_REPO_FILEPATH"
 \
-            deploy:deploy
+          # Folder where the Nexus Staging Maven plugin places the staged 
artifacts
+          export ALT_DEPLOYMENT_REPO_FILEPATH="target/nexus-staging/staging"
 
           # 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.
diff --git a/src/changelog/.12.x.x/distribution-attachments.xml 
b/src/changelog/.12.x.x/distribution-attachments.xml
new file mode 100644
index 0000000..df48bf9
--- /dev/null
+++ b/src/changelog/.12.x.x/distribution-attachments.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns="https://logging.apache.org/xml/ns";
+       xsi:schemaLocation="https://logging.apache.org/xml/ns 
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd";
+       type="changed">
+  <issue id="400" link="https://github.com/apache/logging-parent/issues/400"/>
+  <description format="asciidoc">Fix staging of binary distribution 
archive.</description>
+</entry>

Reply via email to