无法访问http://mvnrepository.com/

时间:2018-10-02 05:17:37

标签: jenkins wget

我突然在詹金斯遇到这个错误:

= Check pre-requisite

Checking global pre-requisite

- aws is reachable in PATH [  OK  ]

DEBUG : wget --spider -S -qO-  http://mvnrepository.com/
      HTTP/1.1 308 Permanent Redirect
      Content-Length: 0
      Date: Tue, 02 Oct 2018 04:49:58 GMT
      Location: https://mvnrepository.com/
      Server: nginx/1.10.1
      Connection: keep-alive
      X-RBT-SCAR: 88888:59701061:1000 ADL
      HTTP/1.1 308 Permanent Redirect
      Content-Length: 0
      Date: Tue, 02 Oct 2018 04:49:58 GMT
      Location: https://mvnrepository.com/
      Server: nginx/1.10.1
      Connection: keep-alive
      X-RBT-SCAR: 10.195.254.60:59701066:1000 ADL
     - http://mvnrepository.com/ is reached [FAILED]
   Impossible to access http://mvnrepository.com/ (wget error code 8 : Server issued an error response )
       # Error detected 



    ###############################################################################
    End of Checks. Status =
    - No warning detected
    - Error detected while executing checks. Unless -ignore-checks flag is on, those will block the installation process and prevent we move further until those are solved.
    ########################################################################
    # Error : Prerequiste check ./project_files/bin/check_prerequisite is not ok. Stopping the operation.
    ########################################################################

1 个答案:

答案 0 :(得分:5)

看起来该站点已停止支持HTTP,并告诉您使用HTTPS。在重定向信息中,您可以看到

Location: https://mvnrepository.com/

因此,使用HTTPS,应该没问题。更具体地说,使用

wget --spider -S -qO-  https://mvnrepository.com/