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?
Asked
Active
Viewed 1.9k times
4
-
Maven is use for dependency management or building project, what do you mean by run maven project ? run a build ? or launch the project execution ? – Tony May 22 '14 at 15:22
-
3You can click on run configurations... and create a new maven build, or right click on the pom.xml and run maven build, it will create a new run configuration automatically – Tony May 22 '14 at 15:24
-
As @Tony mentioned. You need to create a new maven build. Your question is very hard to understand. Try edit that and write that in details.It will allows us to understand and answer. If you have problems to describe problem, just attach screenshots. – Andrew_Dublin May 22 '14 at 16:21
1 Answers
4
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

Community
- 1
- 1

Sasikumar Murugesan
- 4,412
- 10
- 51
- 74