---
title: 编译时提示Connect to central.maven.org:80 connection timed out的解决方法
description: "编译时出现错误，提示信息如下。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/tpdl/kunpengfrocksdbjni_02_0010.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/tpdl/kunpengfrocksdbjni_02_0010.html
indexId: 65d6fa5613d827f52ad48a30b0f16857e93553ce026e4a797352e7a962772e0d74
---
# 编译时提示Connect to central.maven.org:80 connection timed out的解决方法

#### 问题现象描述

编译时出现错误，提示信息如下。

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


#### 关键过程、根本原因分析

无


#### 结论、解决方案及效果

1. 打开“java/Makefile”文件。
  1 vi java/Makefile

2. 按“i”进入编辑模式，修改文件190行的Maven仓库地址为https://repo1.maven.org/maven2/。
  1 190 CENTRAL_REPO_URL?=https://repo1.maven.org/maven2/

3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
