Relocate shaded bytebuddy packages to org.assertj.core.internal.bytebuddy
Explicitly set maven-bundle-plugin phase to package so that it is executed after unpacking the shaded jar.
<createDependencyReducedPom>true</createDependencyReducedPom>
<relocations>
<relocation>
- <pattern>net.sf.cglib</pattern>
- <shadedPattern>org.assertj.core.internal.cglib</shadedPattern>
- </relocation>
- <relocation>
- <pattern>org.objectweb.asm</pattern>
- <shadedPattern>org.assertj.core.internal.asm</shadedPattern>
+ <pattern>net.bytebuddy</pattern>
+ <shadedPattern>org.assertj.core.internal.bytebuddy</shadedPattern>
</relocation>
</relocations>
</configuration>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.0.1</version>
<extensions>true</extensions>
+ <executions>
+ <execution>
+ <id>bundle-after-unpack-shaded</id>
+ <phase>package</phase>
+ <goals>
+ <goal>bundle</goal>
+ </goals>
<configuration>
<instructions>
<Export-Package>org.assertj.core.*</Export-Package>
</instructions>
<niceManifest>true</niceManifest>
</configuration>
+ </execution>
+ </executions>
</plugin>
<!-- generate jacoco report -->
<plugin>
