maven Failed to execute goal .... invalid entry size (expected 3 but got 2 bytes)

今天在用maven打包项目的时候遇到了一个不能打包的问题:命令如下

mvn clean package -DskipTests

错误信息如下

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.14.RELEASE:repackage (default) on project hello: invalid entry size (expected 3 but got 2 bytes)

最终找到了解决方案,原因是项目中有一个js文件,里面啥内容也没有。

参考博客,主要是这篇博客写的太详细了,我就不写了,附上链接

spring boot maven package 失败(invalid entry size (expected 4 but got 3 bytes))

补充一下idea怎么maven debug

maven Failed to execute goal .... invalid entry size (expected 3 but got 2 bytes)_第1张图片

maven Failed to execute goal .... invalid entry size (expected 3 but got 2 bytes)_第2张图片

参考文献

spring boot maven package 失败(invalid entry size (expected 4 but got 3 bytes))

你可能感兴趣的:(springboot,maven)