maven打包提示打包成功, 启动项目时提示: java.util.zip.ZipException: error in opening zip file
检查打包后的文件, 发现Java文件没有被编译, WEB-INF/classes下没有class文件, 查看eclipse的problems视图中看到一条提示: The container 'Maven Dependencies' references non existing library “jar包名称”,
查资料得知把jar包maven仓库中的*.jar.lastUpdated文件删掉即可。 (https://my.oschina.net/duangr/blog/182134)。
删掉.lastUpdated文件执行 maven---Update project, 再重新打包。即可解决不能编译Java文件的问题