You have to enable WTP in the eclipse:eclipse plugin
mvn eclipse:eclipse -DwtpVersion=1.5 (2.0 isn't yet generated by
maven, but eclipse will propose to you to convert it)
If your packaging is defined as war in you pom, you'll see that in
eclipse you have now a web project that you can dynamically
deploy/run/debug on your server
Take a look at the samples on
http://maven.apache.org/plugins/maven-eclipse-plugin

Arnaud

On 06/09/07, trondvalen <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I was wondering... What is the best way to set up Maven, Eclipse and Tomcat
> to work together? I want to handle external library dependencies in Maven 2,
> build a project (preferably Dynamic Web Project) for Eclipse 3.3.0 (using
> something like mvn eclipse:eclipse) and then using Tomcat server 5.5 which
> can be run from Eclipse, serving web pages that are updated as soon as I
> build my Eclipse project. localhost will do fine as host name, we will
> probably deploy a WAR file when we reach production.
>
> Tomcat works fine with Dynamic Web projects in Eclipse, but I can't get
> Maven to generate Dynamic Web Projects for Eclipse, only regular Java
> projects. Is there a way to make Maven do this, or alternatively, can I
> generate servlets for web pages from a regular Java project in Eclipse
> without having to go the long way through WAR deployment?
> --
> View this message in context: 
> http://www.nabble.com/Creating-Dynamic-Web-Projects-for-Eclipse-and-Tomcat-tf4392667s177.html#a12524283
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to