Idea to solve the problem can not be downloaded through the jar package maven added

  To add dependencies using Maven in the idea jar package jar package always found it impossible to download a few tips package download failed

Finally found two reasons

A version of the problem is mainly because my idea was in January 2019 and then download the latest 3.6.3 maven

After various search problem seems to be caused due to an incompatible version and can be found by viewing the error log found some error cause of the error help-> show log in explorer

Then reinstall maven as follows:

1. delete the content maven local repository inside (this is specified in the creation of my maven project that directory also some people may be specified in the apache-maven-3.6.3 \ conf \ settings.xml inside)

2. maven deleted files after extracting the folder apache-maven-3.6.3

3. Do you know the rest of the deleted root maven projects related files (this step is unimportant usually after 12 steps on it)

4. Then I re-downloaded apache-maven-3.6.0 version

https://maven.apache.org/download.cgi to the bottom of this site

Click archives

Select the required version, I'm 3.6.0

 

 

5. Click to download binaries select apache-maven-3.6.0-bin.zip

 

 

 6. Then follow this blog I re-install and modify environment variables can be

 

Guess you like

Origin www.cnblogs.com/zzstdruan1707-4/p/12285466.html