How to run maven project in eclipse

拈花ヽ惹草 提交于 2019-12-12 15:41:12

问题


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

  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



来源:https://stackoverflow.com/questions/23810834/how-to-run-maven-project-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!