Maven配置阿里云仓库
Maven默认使用国外镜像,下载速度很慢,我们可以将仓库地址配置成国内的,比如阿里云的,复制以下代码,替换 settings.xml 文件中的mirrors模块: < mirrors > <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --> <!-- 阿里云仓库 --> < mirror > < id >