Skip to content

Commit

Permalink
Manually relocate snakeyaml multi-release classes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmist authored Nov 6, 2023
1 parent 8e6aad9 commit a7ce047
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@
<pattern>org.yaml.snakeyaml</pattern>
<shadedPattern>net.datafaker.shaded.snakeyaml</shadedPattern>
</relocation>
<!-- Manually relocate shaded snakeyaml multi-release classes to the correct package. This is
needed due to a bug in the Maven Shade plugin, which only relocates the content but not
the package structure itself, see https://issues.apache.org/jira/browse/MSHADE-406. -->
<relocation>
<pattern>META-INF/versions/(\d+)/org/yaml/snakeyaml</pattern>
<shadedPattern>META-INF/versions/$1/net/datafaker/shaded/snakeyaml</shadedPattern>
<rawString>true</rawString>
</relocation>
<relocation>
<pattern>com.mifmif.common.regex</pattern>
<shadedPattern>net.datafaker.shaded.generex</shadedPattern>
Expand Down

0 comments on commit a7ce047

Please sign in to comment.