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

前端 未结 14 1899
予麋鹿
予麋鹿 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条回答
  •  -上瘾入骨i
    2020-11-22 08:30

    We can force the checksum validation in maven with at least two options:

    1.Adding the --strict-checksums to our maven command.

    2.Adding the following configuration to our maven settings file:

    
        
        
            
                
                
                    
                        codehausSnapshots
                        Codehaus Snapshots
                        
                            false
                            always
                            fail
                        
                        
                            true
                            never
                            fail
                        
                        
                            
                        
                    
                
                
                    
                
                
            
        
        
    
    

    More details in this post: https://dzone.com/articles/maven-artifact-checksums-what

提交回复
热议问题