The maven project in idea has been stuck in Resolving Maven dependencies

environment

System: macOS High Sierra 10.13.4
idea: 2017.3.5
maven: apache-maven-3.5.2
maven image: Alibaba Cloud's image

question

After adding dependencies to the pom.xml file of the maven project, start downloading the jar file. However, after the file has been downloaded, it is still stuck in Resolving Maven dependencies, sometimes it takes a long time, and sometimes it is necessary to turn off and restart the idea, as follows picture:
write picture description here

solve

There are many reasons on the Internet that it is the mirror image. The Alibaba Cloud mirror I use is very fast on my colleague's window system, and it is not stuck. Therefore, the mirroring problem has been ruled out, and no solution has been found.
Later, I saw that maven released the apache-maven-3.5.3version, downloaded it, and configured the maven of idea apache-maven-3.5.3, and found that the problem of dealing with maven dependencies has been solved.

The specific reason is not clear, it is estimated that it is 3.5.2not compatible in my environment.

Therefore, if you can't solve the problem after excluding the network, warehouse mirroring, etc., you can try another idea or maven version. This is just a possibility, if not, look for other methods on the Internet O(∩_∩)O haha~

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326639709&siteId=291194637