This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven jetty/tomcat plugin doubt" Watch "Maven jetty/tomcat plugin doubt" New topic
Author

Maven jetty/tomcat plugin doubt

andy kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 57
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
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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: http://aspose.com/file-tools
 
subject: Maven jetty/tomcat plugin doubt
 
Similar Threads
Spring Persistence with Hibernate: Advanced Topics
Calling a custom maven plugin
Maven error when try to use command "mvn package"
tomcat deploy plugin
Transactions testing with maven and jetty