Hi, everyone.

I maintain a java tool that uses all the image libraries under the sun. And
they all expose the javax.imageio.spi.ImageReaderSpi service.

Because it's hard to actually merge all the service definition files I've
opted to merge them manually and add them into my META-INF/services
directory.

Then I use maven shade plugin to exclude this file from all packages and
then add it back with resources definition.

This works 25% of the time and other times I have to open the jar file and
replace this file manually. Because this is a manual step I forget to do
this in some releases so I really hope there is a better way to do this.

I've added the build definition part of the pom file to the link below.

https://pastebin.com/bGy3bvm0

Hope you have a creative solution to this problem. And thank you for a
great tool that really simplified our build process.

Best regards
Daniel

Reply via email to