`
天涯海角tour
  • 浏览: 173969 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

Duplicate name in Manifest: SHA1-Digest

    博客分类:
  • java
 
阅读更多

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”选项,然后其他操作照旧,这样就可以了

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics