Cannot connect to the Maven process

问题描述:

        idea一直提示连接不上maven进程,各种办法都试了,但是死活连不上。报的错误:Cannot connect to the Maven process. Try again later. If the problem persists, check the Maven Importing JDK settings and restart IntelliJ IDEA

解决方案:

         网上很多重复的文章,基本都是复制粘贴的,可能确实写的是对的,但是可能并不全面,今天就添加一个新的点,可能会帮助一些人解决问题。

        其实主要还是参考了idea官网的回答,具体链接:【Maven】 Cannot connect to the Maven process. Try again later. If the problem persists, check the Maven Importing JDK settings and restart IntelliJ IDEA – IDEs Support (IntelliJ Platform) | JetBrains

        下面是idea官网上的回答:

        Please disable antivirus and firewall. The issue happens when the IDE tries to establish connection to localhost but it is blocked on your machine. Make sure the localhost is resolvable and is accessible for the processes to connect to it using tcp. try using different JDK for Maven imported: Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Importing | JDK for importer.

P.S. please do not create duplicated requests, it makes it hard follow and to dispatch them all. Thank you.

        根据上面的描述,该问题发生在当idea试图建立localhost链接时,所以需要确保localhost可用。基本确定是网络的问题,发现本机运行了一个叫小牛的vpn,退出这个vpn后就正常了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值