You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/12/22 14:09:15 UTC
(logging-log4j2) 01/02: Remove `META-INF/versions` leftovers before compilation
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release/2.22.1
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 814ba1e32b66407d950e007abb43004d0df2e27a
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Fri Dec 22 14:36:57 2023 +0100
Remove `META-INF/versions` leftovers before compilation
---
log4j-parent/pom.xml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml
index d99f4829be..9355b67f48 100644
--- a/log4j-parent/pom.xml
+++ b/log4j-parent/pom.xml
@@ -1133,8 +1133,11 @@
<plugins>
<!--
- ~ A previous `generate-module-descriptors` execution leaves `target/classes/module-info.class` files.
- ~ These interfere with the way the `maven-compiler-plugin` works.
+ ~ A previous `generate-module-descriptors` execution leaves:
+ ~ * `target/classes/module-info.class` files, which interferes with `maven-compiler-plugin`,
+ ~ * `target/classes/META-INF/versions` folder, which switch `bnd-maven-plugin` into MRJ mode.
+ ~
+ ~ TODO: test BND multi-release mode in 2.23.0.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -1153,6 +1156,7 @@
<directory>${project.build.outputDirectory}</directory>
<includes>
<include>module-info.class</include>
+ <include>META-INF/versions/**</include>
</includes>
</fileset>
</filesets>