https://maven.apache.org/download.cgiapache
下載完成後將壓縮包解壓。maven
校驗:dos 命令下輸入=>mvn -v。url
注意:確保已安裝JDK1.7以上版本,併成功配置其環境變量。spa
位於conf目錄下,先講三個標籤左右code
<localRepository>:本地倉庫路徑配置server
<localRepository>d:/repo</localRepository>
<servers>:服務配置,用於工程構建deploy至本地倉庫xml
<server> <id>nexus-snapshot</id> <username>admin</username> <password>admin123</password> </server> <server> <id>nexus-releases</id> <username>admin</username> <password>admin123</password> </server>
<mirrors>:配置遠程倉庫鏡像地址it
<mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <name>本地私庫</name> <url>http://localhost:8181/repository/maven-public/</url> </mirror>