1, 下载Maven,(http://maven.apache.org/download.html#Installation)
2,解压:
D:/apache-maven-3.0.3
3,配置环境变量: MAVEN_PATH:D:/apache-maven-3.0.3,PATH:%MAVEN_PATH%/bin;
4,安装Eclipse 插件,
打开 Eclipse->Help->Install New Software...->Add (http://m2eclipse.sonatype.org/sites/m2e)
一路Next, 选Maven,选 Accept,点Finish.
5, New Maven Project..
一些常用DOS命令
mvn clean compile
mvn clean test
mvn package
mvn clean install
mvn archetype:generate