1. 首先在c盘创建settings.xml文件
路径如下 C:\Users\user\.m2\settings.xml
2. settings.xml的文件的内容
<?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>E:\softwears\apache-maven-3.3.9-bin\apache-maven-3.3.9\repository</localRepository> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> </profiles> </settings>
3. 下载 maven 下载地址 https://maven.apache.org/download.cgi
4. 在ideal中进行配置相应的文件
5. 对maven可添加环境变量
到此,基本的配置算是完成了