Deployment to tomcat from eclipse via M2eclipse and Maven -
Deployment to tomcat from eclipse via M2eclipse and Maven -
i'm using m2e create maven archetype projects (in case simple web app) aim of using maven deploy remote tomcat server.
i've added tomcat-maven-plugin pom.xml file, , appears correct.
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>tomcat-maven-plugin</artifactid> <configuration> <server>localserver</server> </configuration> </plugin>
and when type "mvn tomcat:deploy" terminal deploys successfully. know settings.xml tomcat settings in order.
is possible deploy application straight eclipse without having go through terminal. in other words possible pass command "mvn tomcat:deploy" eclipse maven?
cheers
you can run maven goal straight eclipse run configurations http://mevenide.codehaus.org/mevenide-ui-eclipse/user-guide/run.html
also can configure server view in eclipse (wtp) , deploy (or auto deploy after file change) straight eclipse (maven not used in process, responsible configure proper nature of project - ex. war).
maven integration eclipse wtp (a.k.a m2e-wtp) aims @ providing tight integration between maven integration eclipse (a.k.a m2e) , eclipse web tools project (wtp) .
m2e-wtp provides set of m2e connectors used configuration of java ee projects in wtp. features :
support war projects : adds java , dynamic web facets. back upwards war overlays , on-the-fly resource filtering
read this: maven/tomcat projects in eclipse indigo/3.7
eclipse tomcat maven-3 m2eclipse
Comments
Post a Comment