Rate This Document
Findability
Accuracy
Completeness
Readability

Error "Connect to central.maven.org:80 connection timed out" Reported During Compilation

Symptom

An error is reported during compilation:

1
Failed Connect to central.maven.org:80 connection timed out

Key Process and Cause Analysis

None

Conclusion and Solution

  1. Open the java/Makefile file.
    1
    vi java/Makefile
    
  2. Press i to enter the insert mode and change the Maven repository address in line 190 to https://repo1.maven.org/maven2/.
    1
    190 CENTRAL_REPO_URL?=https://repo1.maven.org/maven2/
    
  3. Press Esc, type :wq!, and press Enter to save the file and exit.