Search code examples
javaeclipseweb-applicationsmavenm2eclipse

m2eclipse how make a webapp


I select New Project Wizard and choose Maven Project from the list. In Archetype selection panel select maven-archetype-webapp. Make the project, but i dont see to deploy on tomcat.


Solution

  • You need to install the Maven integration for WTP plugin (a.k.a m2eclipse-wtp). It's available from the m2eclipse Update Site hosted by JBoss: http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/

    Once you've installed it, right click on your project > Maven > Update Project configuration. The m2eclipse-wtp plugin will take care of configuring the WTP settings for your project from the maven-war-plugin configuration from your pom.xml.

    Once configured, you should have access to the "Run > Run on server" menu