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

前端 未结 14 2059
予麋鹿
予麋鹿 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:49

    Maybe unrelated to the original reason in this question, but for those who would face same with gradle and local module dependency

    dependencies {
        checkstyle project(":module")
    }
    

    this error could happen, if module doesn't contain group and version, so in the module/build.gradle just need to be specified

    plugins {
        id 'java-library'
    }
    
    group = "com.example"
    version = "master-SNAPSHOT"
    

提交回复
热议问题