Duplicate name in Manifest: SHA1-Digest
在运行有fat jar打包的JAR文件时控制台出现各种警告:
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 11, 2012 10:37:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 11, 2012 10:37:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 11, 2012 10:37:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
问题原因:
在MANIFEST.MF文件中,有多个SHA1-Digest,导致控制台报错
解决方法:
在用fat jar打包时,取消“merge individual-sections of all MANIFEST.MF files”选项,然后其他操作照旧,这样就可以了
Duplicate name in Manifest: SHA1-Digest
最新推荐文章于 2021-02-22 14:56:39 发布