Maven dependencies are failing with a 501 error

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

    If you are using Netbeans older version, you have to make changes in maven to use https over http

    Open C:\Program Files\NetBeans8.0.2\java\maven\conf\settings.xml and paste below code in between mirrors tag

    
    maven-mirror
    Maven Mirror
    https://repo.maven.apache.org/maven2
    central
    
    

    It will force maven to use https://repo.maven.apache.org/maven2 url.

提交回复
热议问题