[英]How to add a NOTICE file in META-INF of a existing jar?
How to add a NOTICE file in META-INF of a existing jar? 如何在现有jar的META-INF中添加NOTICE文件?
I tried jar uf jarfilename META-INF NOTICE
but it creates a duplicate META-INF directory instead of updating the existing directory. 我尝试了
jar uf jarfilename META-INF NOTICE
但它创建了重复的META-INF目录,而不是更新现有目录。
did you try "META-INFO/NOTICE" or "META-INF NOTICE"? 您是否尝试过“ META-INFO / NOTICE”或“ META-INF NOTICE”? the former should add the file to the META-INF dir.
前者应将文件添加到META-INF目录中。 the latter will create 2 separate entries in your jar file.
后者将在您的jar文件中创建2个单独的条目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.