新机器配置
2018-05-24 本文已影响0人
denok
Maven
指定环境变量
MAVEN_HOME
设置\conf\setting.xml
(1)设置本地仓库
<!--
配置本地MAVEN仓库位置,默认在:C:\Users\机器名\.m2\repository
-->
<localRepository>D:\Program Files\mvn\</localRepository>
(2)设置阿里云
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
MyEclipse中添加maven
(1)Window->Preferences->MyEclipse->Maven4MyEclipse->Installations
image.png
(2)MyEclipse->Window->Preferences->MyEclipse->Maven4MyEclipse->User Setting
image.png