Issue
I'm on Windows XP, using Eclipse Indigo, Tomcat 6.0.33, and have the Maven plugin installed. (Using Maven 3.0.3 on my system). I have Tomcat showing up in my Eclipse servers list, but I can't figure out a one click way to deploy my WAR project to the Tomcat server. When I right click my project and select "Run" there are many Maven options (e.g. "Maven Install"), but none builds and then deploys my project to Tomcat.
Any help along these lines? Thanks, - Dave
Solution
see below link for details
http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html
Alternatively, search for tomcat:run and you can use it directly
EDIT:
Run/Debug Configurations
Double click maven build, a new configuration will be created
put ${project_loc} for base directory
put tomcat:run for goals
give an appropriate name for yourself at the top
Apply and run/debug using your new configuration
EDIT2:
The link has been changed to below one: http://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/ (Thanks @Lucky)
Answered By - fmucar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.