Maven dependencies are failing with a 501 error

前端 未结 25 3566
南旧
南旧 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:21

    I was using a clean install of Maven/Java on a Docker container.

    For me, I had to cd $M2_HOME/conf and edit the settings.xml file there. Add the following block inside ...

    
      central-secure
      https://repo.maven.apache.org/maven2
      central
    
    

提交回复
热议问题