Due to a design issue outside of my control, the MANIFEST.MF
file populated by the Maven Archiver plugin (inside of Maven jar plugin) is overwritten.
Can I:
- move the file further down into the jar (i.e. from
/META-INF
to/src/home
or something) - Populate a different file with the contents that would normally go into
MANIFEST.mf
(i.e.src/home/something.txt
)
I've tri开发者_JAVA技巧ed to change the <manifestFile>
property but that just merges the manifest from that location to the /META-INF
location.
I don't really get the point - that's not a MANIFEST.MF
anymore - but if you move the contents to, say src/main/resources/src/home/something.txt
, src/home/something.txt
will end up in the jar. Unless I misunderstood something, this is what you asked for. If it isn't, please clarify.
精彩评论