Skip to content

Commit

Permalink
Remove META-INF/versions leftovers before compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Dec 22, 2023
1 parent 6a0953a commit 814ba1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions log4j-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -1153,6 +1156,7 @@
<directory>${project.build.outputDirectory}</directory>
<includes>
<include>module-info.class</include>
<include>META-INF/versions/**</include>
</includes>
</fileset>
</filesets>
Expand Down

0 comments on commit 814ba1e

Please sign in to comment.