Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在现有 jar 的 META-INF 中添加 NOTICE 文件?
我尝试过jar uf jarfilename META-INF NOTICE,但它创建了一个重复的 META-INF 目录,而不是更新现有目录。
jar uf jarfilename META-INF NOTICE
你试过“META-INFO/NOTICE”还是“META-INF NOTICE”?前者应将文件添加到 META-INF 目录。后者将在您的 jar 文件中创建 2 个单独的条目。