Maven projects in idea cannot download, identify, and parse related dependencies

1. Check the Alibaba Cloud mirror configuration in settings.xml (if Alibaba Cloud mirror is set).

2. Caching problem, file---seetings-----invalidatecaches.

3.maven clean---------maven install, you can reimport maven later.

4. There is a version problem with related dependencies. Maybe the version of related dependencies in the pom.xml configuration file has disappeared. Go to the official maven warehouse website https://mvnrepository.com/ https://mvnrepository.com/

Check whether the version of the package related to the error exists in the maven repository. If it does not exist, change the dependency version of the relevant package in pom.xml; or find the old version of the relevant package and manually copy it to the folder corresponding to the path of the locally configured maven warehouse in the idea. Then refresh and build.

5. Network problem, replace the network and try to refresh again.

6.Set VM options() in file---seetings---maven---Runner:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

 Also set VM options() in file---seetings---maven---importing:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

 

 Then refresh and build.

Guess you like

Origin blog.csdn.net/qq_44973310/article/details/126347055