1.eclipse mars2
不同的eclipse有使用的jdk的限制,对于jdk1.7我现在用的是eclipse Mars2。以下是不同版本对应的jdk。
http://blog.csdn.net/jieshaowang1229/article/details/51594753
http://pan.baidu.com/s/1skCiNKx 密码:y459 。
2.maven插件
1) help - Eclipse Marketplace 搜索maven 进行下载。
2) Windows - preferences - maven - installations 添加一下地址
- user setting 设置一下setting
3.关于阿里云maven库的配置
1)统一修改仓库地址
可以直接修改Mavenconf文件夹中的setting.xml文件,或者在.m2文件夹下建立一个setting·xml文件。
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
2)分别对不同的项目进行配置
直接在pom.xml中进行修改
<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
</repositories>