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">
<!-- 設(shè)置本地倉庫的地址 -->
<localRepository>D:/ruanjian/mavenHub</localRepository>
<!-- 設(shè)置國內(nèi)的鏡像 -->
<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中找到對應(yīng)文件,相應(yīng)進(jìn)行配置