开发者

Need to have the manifest generated data moved deeper inside of the jar

开发者 https://www.devze.com 2023-01-09 12:03 出处:网络
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.

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:

  1. move the file further down into the jar (i.e. from /META-INF to /src/home or something)
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消