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.