配置
在 项目的 pom.xml 文件中添加如下配置即可
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion>......<!-- 下面是配置的代理的仓库 --><repositories><repository><id>maven-ali-center</id><url>https://maven.aliyun.com/repository/central</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>interval:10000</updatePolicy></snapshots></repository><repository><id>nexus</id><url>http://repo.maven.apache.org/maven2</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>interval:10000</updatePolicy></snapshots></repository></repositories></project>
阿里云仓库的使用
地址 :https://developer.aliyun.com/mvn/guide
可以搜索目标依赖