Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run maven project in eclipse

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?

like image 883
khris Avatar asked Nov 16 '25 01:11

khris


1 Answers

To build a maven project in eclipse

  1. In Eclipse, Run -> Run Configuration
  2. Right click on Maven and select New
  3. Enter Name, select base directory of your maven project
  4. Enter Goal as "clean install"(or yours options)
  5. Click on Apply and Run

There are some possible changes are there for build failure because of tool.jar not found and Reference here

like image 173
Sasikumar Murugesan Avatar answered Nov 17 '25 21:11

Sasikumar Murugesan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!