1.配置文件
<?xml version="1.0" encoding="UTF-8"?>
<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>F:/lib/repository</localRepository><pluginGroups></pluginGroups><proxies></proxies><servers></servers><mirrors> <mirror><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf> </mirror></mirrors> <profiles> </profiles>
</settings>
2 环境变量配置:
在系统变量中配置 MAVEN_HOME: D:\Program Files (x86)\maven\apache-maven-3.5.4
在系统变量的Path中添加: [;%MAVEN_HOME%\bin]