问题:在打包的过程中常常会遇到下载依赖出现问题,导致下载不成功,从而导致打包失败
解决:在maven目录下找到 conf/settings.xml 文件,修改镜像源
默认镜像源
--> mirrorId repositoryId Human Readable Name for this Mirror. http://my.repository.com/repo/path maven-default-http-blocker external:http:* Pseudo repository to mirror external repositories initially using HTTP. http://0.0.0.0/ true
修改为阿里镜像源
alimaven
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/
repo1
central
Human Readable Name for this Mirror.
http://repo1.maven.org/maven2/
repo2
central
Human Readable Name for this Mirror.
http://repo2.maven.org/maven2/



