Maven dependencies are failing with a 501 error

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

    Same issue is also occuring for jcenter.

    From 13 Jan 2020 onwards, Jcenter is only available at HTTPS.

    Projects getting their dependencies using the same will start facing issues. For quick fixes do the following in your build.gradle

    instead of

    repositories {
    jcenter ()
    //others
    }
    

    use this:

    repositories {
    jcenter { url "http://jcenter.bintray.com/"}
    //others
    }
    

提交回复
热议问题