Tuesday, March 7, 2017

Maven, Eclipse and Tomcat


When building a Maven project in Eclipse, this error may occur if the build goal is not set:
      No goals have been specified for this build.

To build it and start it with Tomcat:
  1. Right click on the project;
  2. Select Run As -> Maven build
  3. In the dialog, on the right side, find the Goals input. Input the goal: -Dmaven.tomcat.port=8080 tomcat:run
  4. Click the Run button. 

No comments:

 
Get This <