Maven Shade插件:如何解决警告消息;定义1个重叠资源:[警告]-META-INF/MANIFEST.MF“;
为了Maven Shade插件:如何解决警告消息;定义1个重叠资源:[警告]-META-INF/MANIFEST.MF“;,maven,maven-3,maven-shade-plugin,Maven,Maven 3,Maven Shade Plugin,为了 如何修复删除该警告消息?这主要是因为我的所有模块在其src/main/resources目录中没有META/MANIFEST.MF文件 [WARNING] moduleA-0.0.1-SNAPSHOT.jar, moduleB-0.0.1-SNAPSHOT.jar, .... more moduleN-0.0.1-SNAPSHOT.jar define 1 overlapping resource: [WARNING]
如何修复删除该警告消息?这主要是因为我的所有模块在其
src/main/resources
目录中没有META/MANIFEST.MF
文件
[WARNING] moduleA-0.0.1-SNAPSHOT.jar,
moduleB-0.0.1-SNAPSHOT.jar,
.... more
moduleN-0.0.1-SNAPSHOT.jar define 1 overlapping resource:
[WARNING] - META-INF/MANIFEST.MF
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/
org.example:*
META-INF/*.MF
[WARNING] moduleA-0.0.1-SNAPSHOT.jar,
moduleB-0.0.1-SNAPSHOT.jar,
.... more
moduleN-0.0.1-SNAPSHOT.jar define 1 overlapping resource:
[WARNING] - META-INF/MANIFEST.MF
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/
<filters>
<filter>
<artifact>org.example:*</artifact>
<excludes>
<exclude>META-INF/*.MF</exclude>
</excludes>
</filter>
</filters>