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 01465ca269 INFRA-23225 Provide deployment repository for log4j-bom.
01465ca269 is described below

commit 01465ca269bac24e0e4e9d1cdc7b912524cae20c
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Mon May 9 20:50:14 2022 +0200

    INFRA-23225 Provide deployment repository for log4j-bom.
---
 .github/workflows/build.yml |  1 -
 log4j-bom/pom.xml           | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 52a0988652..288d2486e5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -143,7 +143,6 @@ jobs:
         # INFRA-23225 `log4j-bom` is excluded due to 401 errors.
         run: |
           ./mvnw \
-            -pl '!log4j-bom' \
             --show-version --batch-mode --errors --no-transfer-progress \
             -Dgpg.skip=true \
             -DskipTests=true \
diff --git a/log4j-bom/pom.xml b/log4j-bom/pom.xml
index 107878c42d..8fe850d8c0 100644
--- a/log4j-bom/pom.xml
+++ b/log4j-bom/pom.xml
@@ -28,6 +28,17 @@
   <artifactId>log4j-bom</artifactId>
   <version>2.17.3-SNAPSHOT</version>
   <packaging>pom</packaging>
+
+  <!-- `log4j-bom` doesn't inherit from the room POM, but 
`org.apache.logging:logging-parent`.
+       Hence Maven repositories need to be explicitly provided for SNAPSHOT 
artifact deployments. -->
+  <distributionManagement>
+    <snapshotRepository>
+      <id>asf-snapshots</id>
+      <name>ASF snapshot repository</name>
+      <url>https://repository.apache.org/content/repositories/snapshots</url>
+    </snapshotRepository>
+  </distributionManagement>
+
   <dependencyManagement>
     <dependencies>
       <!-- Log4j API -->

Reply via email to