Maven Eclipse 笔记
1.
下载apache-maven-3.1.1-bin.zip
SITE:http://maven.apache.org/download.cgi
2.
配置
M2_REPO= C:\Users\<UserName>\.m2\repository (Default Place)
M2_HOME= G:\apache-maven-3.1.1
You can also define a new classpath variable (M2_REPO) inside Eclipse: From the menu bar, select Window > Preferences. Select the Java > Build Path > Classpath Variables page.
3.
安装插件
<?>mvn -Declipse.workspace=<Eclipse Workspace Path> eclipse:add-maven-repo
<?>SITE:http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html
eclipse菜单栏Help->Eclipse Marketplace搜索关键字maven到插件Maven Integration for Eclipse 并点击安装即可
EZ-HELP: http://jingyan.baidu.com/article/295430f136e8e00c7e0050b9.html
注意要修改 Eclipse 设置 ,指定下载好的 Maven的路径
清理项目
删除项目下多余的点文件夹
mvn eclipse:clean