Deploying Maven project throws java.util.zip.ZipException: invalid LOC header (bad signature)

前端 未结 14 2040
予麋鹿
予麋鹿 2020-11-22 08:03

I am getting the below exception when I run my mvn install. I have even deleted the local repository and ran again getting same exception.

<
14条回答
  •  误落风尘
    2020-11-22 08:26

    Looks like problem of configuration for maven compiler in your pom file. Default version java source and target is 1.5, even used JDK has higher version.

    To fix, add maven compiler plugin configuration section with higher java version, example:

    
      org.apache.maven.plugins
      maven-compiler-plugin
      3.6.1
      
        1.6
        1.6
      
    
    

    For more info check these links:

    maven compiler

    bug report

提交回复
热议问题