Maven checksum failed

后端 未结 5 1766
隐瞒了意图╮
隐瞒了意图╮ 2021-02-07 09:39

I am working on a project that uses Maven as the build tool. I am using version 2.2.1 of the tool. Recently a coworker mentioned that he couldn\'t build the project because of c

5条回答
  •  梦谈多话
    2021-02-07 10:06

    The problem appears to be in how the maven client is deploying artifacts to your central repository (Archiva). It's using HTTP and in certain situations will corrupt the checksum signature of the file.

    Try changing your local maven settings file to look something like this, which for me was located in ~/.m2/settings.xml

    
      
        
          my-server
          
            
              
                
                  
                    http.authentication.preemptive
                    %b,true
                  
                
              
            
          
        
      
    
    

    After you make that change, redeploy the artifacts to your central repo, then try to run mvn dependency:resolve in your local project to see if the checksum errors still happen.

    Here's a thread about this problem: http://jira.codehaus.org/browse/MNG-4301

提交回复
热议问题