How can I get the Maven Shade plugin to copy an arbitrary file to the jar
I am using the Maven Shade plugin to build an executable JAR file for one of my projects. It works well but I need to include an extra file in the JAR which is not included in other builds (and is 开发者_如何转开发not simply picked up from the project's target/ directory). How can I do this?
Just put that supplemental file into src/main/resources folder and that should do the trick.
I would consider moving (or copying) the file into a maven module instead of fighting against the way the plugin works.
精彩评论