简体   繁体   中英

Fix Intellij Idea download sources Connection Refused to host 127.0.0.1 error

当我尝试下载由 Maven 拉取的库类的源时,我在 Intellij IDEA 中收到错误:

java.rmi.ConnectException: Connection refused to host: 127.0.0.1

UPD (from @Andrey): This might have been fixed in version 2021.1.3

For older versions:

This can be fixed by selecting a proper JDK in your project's Maven Importer setting.

In the project setting go to Build Tools -> Maven -> Importing

Set JDK for importer to the JDK installed on your OS (Not the built-in one)

Try to download sources again - should be working now.

修复下载源连接被拒绝

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM