You can create your own transformer implementation and add it as a dependency of the plugin (see sources there [1] to see what interface to implement). not tested but should work Maybe you can use a feature of the resources plugin see https://maven.apache.org/plugins/maven-resources-plugin/examples/custom-resource-filters.html
Another option is to use a feature of the resources plugin to create your own filtering (see [2]) Note the documentation is not up2date. You should be able to use some annotations such @Singleton @Named("itFilter") public class ItFilter implements MavenResourcesFiltering and so you do not need the plugin plexus-component-metadata HTH Olivier [1] https://github.com/apache/maven-shade-plugin/tree/master/src/main/java/org/apache/maven/plugins/shade/resource [2] https://maven.apache.org/plugins/maven-resources-plugin/examples/custom-resource-filters.html On Mon, 5 Sept 2022 at 06:51, PJ Fanning <fannin...@yahoo.com.invalid> wrote: > Hi everyone, > > I have another question about maven-shade-plugin. I'm wondering if there > is an equivalent of ServicesResourceTransformer that can be used on > resource files that appear outside META-INF/services dir. > > My use case involves avro-compiler.jar. It has Velocity templates that are > used to generate Java classes and I need to modify to relocate the package > names - the same relocation that maven-shade-plugin already does for the > class files. > > Any pointers would be appreciated. > > Regards, > PJ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >