This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
The following commit(s) were added to refs/heads/main by this push:
new 0eea0ff Fix staging of binary distribution archive (#401)
0eea0ff is described below
commit 0eea0ffbcba03c14a9cce2a5d002b53be521e6db
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Jun 4 07:11:43 2025 +0200
Fix staging of binary distribution archive (#401)
* 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.
* Fix job step name
---------
Co-authored-by: Volkan Yazıcı <[email protected]>
---
.github/workflows/deploy-release-reusable.yaml | 11 +++--------
src/changelog/.12.x.x/distribution-attachments.xml | 8 ++++++++
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/deploy-release-reusable.yaml
b/.github/workflows/deploy-release-reusable.yaml
index 98215e9..0b91397 100644
--- a/.github/workflows/deploy-release-reusable.yaml
+++ b/.github/workflows/deploy-release-reusable.yaml
@@ -200,16 +200,11 @@ jobs:
--show-version --batch-mode --errors --no-transfer-progress \
site
- - name: Stage distribution attachments
+ - name: Collect distribution attachments information
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>