maven-shade-plugin icon indicating copy to clipboard operation
maven-shade-plugin copied to clipboard

minimizeJar too aggressive

Open RefuX opened this issue 8 months ago • 0 comments

Affected version

3.6.0

Bug description

I'm shading the com.fasterxml.woodstox:woodstox-core:7.0.0 library.

META-INF/services/javax.xml.stream.XMLEventFactory: my.shaded.wstx.stax.WstxEventFactory

META-INF/services/javax.xml.stream.XMLInputFactory: my.shaded.wstx.stax.WstxInputFactory

META-INF/services/javax.xml.stream.XMLOutputFactory: my.shaded.wstx.stax.WstxOutputFactory

With minimizeJar set to true, even though we have the above references to these Factory classes. The Factory classes are minimized out.

For now my work-around is to create a static reference to the Factories 😭

RefuX avatar May 28 '25 18:05 RefuX