If I wanted to create a jar file without META-INF metadata using the jar utility, I can pass the -M switch, which will be:
-M do not create a manifest file for the entries
Please note that this is a function of the jar utility. If I use it, I get a jar without a META-INF folder and turn on MANIFEST, basically just an archive like jar with any files / directories that I inserted into it.
How can I do this using maven-jar-plugin? I need to do this to fit a different process. (They are expecting a jar with a very specific file / folder location, and I cannot have the META-INF folder in the root jar file.)
I have a configuration to create a jar file only on the right, and I don't want to mess with another plugin ...
source
share