简体   繁体   中英

tomcat-maven-plugin in GWT project. What is the difference between: org.codehaus.mojo and org.apache.tomcat.maven plugin

I am trying to set up tomcat server for gwt application. I would like to configure server to update my server side code changes immediately .

While looking for some helpful examples over the web, I found that there are to plugins for maven.

One from: org.codehaus.mojo (which also provide plugin for gwt in maven echosystem).

And second from: org.apache.tomcat.maven .

What is the difference between them? Which one should I choose for: GWT 2.7 Maven Project . I will develope app in Eclipse IDE . So I would like to have good integration with it to. Fe: the Eclipse tab/view "Servers".

From https://tomcat.apache.org/maven-plugin-2.2/

This is the new home for the Tomcat Maven Plugin (previously hosted at Codehaus).

The CodeHaus Mojo (now MojoHaus) Tomcat Maven Plugin is obsolete.

I have Maven archetypes that use the Tomcat Maven Plugin to fire up a server for development, with automatic redeployment of the webapp when classes change, at https://github.com/tbroyer/gwt-maven-archetypes
Note that they use a different Maven Plugin for GWT than the one from MojoHaus (ex-CodeHaus Mojo), one that works much better with multi-module builds.
I've never used Eclipse WTP though (tried it and had too much trouble, probably because I didn't really know how to use it properly though) so I can't really comment, but I see no reason why it wouldn't work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM