I already have maven build pom (slightly complicated) which creates compiled and prepared jar file for my project. I copy that file to various destinations using maven-antrun-plugin by using copy in targets section.
What I want to achieve is to change manifest file (add something to it) in each copy. For example:
prepared.jar -- copy to --> /linux/prepared-linux.jar (the same content as prepared.jar, but the manifest contains something specific to linux)
prepared.jar -- copy to --> /win64/prepared-win64.jar (the same content as prepared.jar, but the manifest contains something specific to windows)
I do not want to create prepared.jar multiple times, just to copy it and change manifest in copy. Does anybody know about some maven 3.1 compatible plugin which is capable to do it and which is easily configurable and works on windows and linux platforms ?