Failed to execute goal org.apache.maven.plugins:maven-shade-plugin错误解决

报错内容:

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:
*****中间省略一堆maven的地址数据****
java.util.zip.ZipException: invalid LOC header (bad signature) 
  • 看错误提示,在中间的maven地址中提示了哪个jar包损坏,根据地址找到该jar包所在位置,删除该jar包的最低级文件夹
  • 然后回到idea,刷新maven project,被删掉jar包所在的依赖会报错,查看是哪个依赖,在pom.xml中找到该依赖的所在的,删除该依赖,再刷新maven project
  • 刷新之后不再报错,再将删除的依赖导入,等待idea重新下载即可

你可能感兴趣的:(Failed to execute goal org.apache.maven.plugins:maven-shade-plugin错误解决)