【背景】
买了个surface,带到公司当做开发机器来用,各种环境都需要重新安装,写个笔记记录下maven安装步骤,虽然很简单,但是我这脑子,容易忘记,写下来以备用
【开工】
安装Maven
<localRepository>C:/career/tools/maven/repositories/oecs-repository/repo</localRepository>
<profile>
<id>develop</id>
<repositories>
<repository>
<id>remote-nexus</id>
<name>remote-nexus</name>
<url>http://192.168.200.203:9090/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>remote-nexus</id>
<name>remote-nexus</name>
<url>http://192.168.200.203:9090/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
<activeProfiles>
<activeProfile>develop</activeProfile>
</activeProfiles>
C:/career/tools/maven/repositories/oecs-repository/
至此,maven安装已经完成
安装Eclipse插件并配置
二、这里我选择的是直接使用links的安装方式:
最后提供一个maven培训的ppt,公司内部培训的时候使用的:http://pan.baidu.com/s/1nt7EPBV
[Tools] maven-eclipse安装及配置,布布扣,bubuko.com
原文:http://www.cnblogs.com/garinzhang/p/3637035.html