Maven dependencies are failing with a 501 error

前端 未结 25 3261
南旧
南旧 2020-11-22 06:28

Recently Maven build jobs running in Jenkins are failing with the below exception saying that they couldn\'t pull dependencies from Maven Central

25条回答
  •  情话喂你
    2020-11-22 07:16

    Add this in pom.xml file. It works fine for me

    
        
            central
            Central Repository
            https://repo.maven.apache.org/maven2
            default
            
                false
            
            
                never
            
        
    
    
    
        
            central
            Central Repository
            https://repo.maven.apache.org/maven2
            default
            
                false
            
        
    
    

提交回复
热议问题