12
部署Maven项目会引发java.util.zip.ZipException:无效的LOC标头(错误的签名)
运行我的计算机时,出现以下异常mvn install。我什至删除了本地存储库,然后再次运行以获取相同的异常。 [错误]无法在项目核心批次上执行目标org.apache.maven.plugins:maven-shade-plugin:2.1:shade(默认):创建阴影jar时出错:无效的LOC标头(错误签名)-> [帮助1 ] <?xml version="1.0" encoding="UTF-8"?> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.1</version> <configuration> <skipTests>true</skipTests> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <excludes> <exclude>commons-logging:commons-logging:jar:*</exclude> </excludes> </artifactSet> <filters> <filter> <artifact>*:*</artifact> <excludes> <!-- workaround for a spring issues --> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> <!-- don't want to pick up any other log4j.xml …
164
maven
jakarta-ee
deployment
jar