如何在eclipse 导入maven project

网上有很多开源项目是maven 的,如何导入这些项目到自己的eclipse workspace ,进行编译研究

1. 要 setup maven 在自己机器上
2. 配置自己eclipse
以上步骤参考: http://maven.apache.org/guides/index.html

3. copy project source folder to your eclipse workspace
4. enter the project folder which pom.xml exists
5. run command: mvn eclipse:eclipse
6. open eclipse , import the project

referring:

http://stackabuse.com/article/how-to/how-to-develop-a-maven-project-in-eclipse

猜你喜欢

转载自david-95-live-cn.iteye.com/blog/2164217