File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven jetty/tomcat plugin doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven jetty/tomcat plugin doubt" Watch "Maven jetty/tomcat plugin doubt" New topic

Maven jetty/tomcat plugin doubt

andy kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 64
I created a new maven webapp project and I am able to compile it without any errors. I was trying to use the embedded jetty or tomcat plugin to run it. So I type mvn tomcat:run and it starts the server and I can see my deployed jsps. But to test on jetty when I type mvn jetty:run I get an error saying that there is no jetty plugin info. When I add the needed info in my pom file for jetty , I am able to run jetty just fine. So my question is how did tomcat work without specifying any tomcat plugin information. I looked at the super POM file as well and did not find any tomcat plugin info and I am using maven 2.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Based on the Tomcat plugin documentation (what little there is, I could rant about this but will attempt to restrain myself, hopefully now that it is an Apache project it will soon use the standard mojo documentation pattern) and a glimpse at the pom.xml, it would appear that it downloads all of the necessary JARs that make up Tomcat into your local repository and uses those to run Tomcat. You might be able to verify this by using the -X option.

JBoss In Action
I agree. Here's the link:
subject: Maven jetty/tomcat plugin doubt
It's not a secret anymore!