maven安装
1.直接下载安装文件放到软件目录下
2.在path中配置路径,先新建MAVEN_HOME,输入bin目录下的路径,然后在path中添加%MAVEN_HOME
3.在maven中找到C:\Program Files\maven\apache-maven-3.6.1\conf\setting.xml
4.修改本地仓库,新建本地D:/mavenHub,
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- 设置本地仓库的地址 -->
<localRepository>D:/ruanjian/mavenHub</localRepository>
<!-- 设置国内的镜像 -->
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
以防万一在IDEA中找到对应文件,相应进行配置