Maven cannot download jar and pom files properly

maven suddenly encountered an exception and could not download any mirrored jar packages and pom files. The strange thing is that it is completely normal to access directly in the browser or directly curl links under the terminal.

operating system is macOS

Darwin xxx-MB0 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64

mvn version information is as follows:

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
Maven home: /Users/dhy/tool/apache-maven-3.5.4
Java version: 1.7.0_80, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

mvn clean compile information is as follows:

[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------------< com.xxx:yyy >-----------------------------
[INFO] Building yyy 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from nexus-aliyun: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom

is directly stuck on this page, and the official data source is still the same. Oddly enough, this link is normal both in curl and in the browser.

Mar.25,2021

try deleting the package in .m2 warehouse


recently Aliyun maven feels that there is something wrong with it. Try another image


check whether IDE is connected properly, and try

mvn clean -U install

if it still doesn't work, try

mvn dependency:purge-local-repository -sharprepo
mvn dependency: purge-local-repository -DreResolve=false -sharpmvn 

maybe you can check the updatePolicy tag of the setting.xml file

<!-- dailyalwaysinterval:xx -->
<snapshotPolicy>always</snapshotPolicy>

none of the above is valid, so try deleting .m2 / repository, to rebuild the warehouse


when you encounter this kind of egg pain, sprinkle the family
1, delete the package
2, clean
3, install
4, reimport Allmaven project
as a dog
No, there is a great way to reinstall it / there should be dog head expression here

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9e9a5-2f423.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9e9a5-2f423.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?