问题
I have maven project on Java with TestNG. I want to run it from eclipse. I use Eclipse Kepler and have installed m2eclipse plugin. But there is no any option connected with maven in menu Run as... Could someone help me with such issue. How should I run maven project in eclipse?
回答1:
To build a maven project in eclipse
- In Eclipse, Run -> Run Configuration
- Right click on Maven and select New
- Enter Name, select base directory of your maven project
- Enter Goal as "clean install"(or yours options)
- Click on Apply and Run
There are some possible changes are there for build failure because of tool.jar not found and Reference here
来源:https://stackoverflow.com/questions/23810834/how-to-run-maven-project-in-eclipse