This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
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.