1. 首先在c盤建立settings.xml文件html
路徑以下 C:\Users\user\.m2\settings.xml apache
2. settings.xml的文件的內容maven
<?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.cgiide
4. 在ideal中進行配置相應的文件url
5. 對maven可添加環境變量idea
到此,基本的配置算是完成了server