The jetty plugin's configuration should be in your war module, not your pom or jar module. So if you look in all your pom.xml files, I believe you'll find what you're looking for in the pom.xml that has <packaging>war</packaging>. You could also define it in your <packaging>pom</packaging>, but you won't be able to run it unless you're in a war project.
Matt On Sun, Mar 8, 2009 at 10:52 AM, hanasaki jiji <hanas...@gmail.com> wrote: > nope: if it was needed, shouldnt the mojo create the jetty info? > > On Sun, Mar 8, 2009 at 11:49 AM, Matt Raible <m...@raibledesigns.com> wrote: >> If you cd into your "Web" directory, you should be able to run it from there. >> >> On Sun, Mar 8, 2009 at 10:48 AM, Matt Raible <m...@raibledesigns.com> wrote: >>> Do you have the jetty plugin defined in your pom.xml? >>> >>> Matt >>> >>> On Sun, Mar 8, 2009 at 12:28 AM, hanasaki jiji <hanas...@gmail.com> wrote: >>>> users@appfuse.dev.java.net >>>> >>>> what needs to be done to support the jetty:run-war Just built the >>>> MOJO from the command line: (just edited the artifactID in the POM) >>>> >>>> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes >>>> -DarchetypeArtifactId=appfuse-modular-spring >>>> -DremoteRepositories=http://static.appfuse.org/releases >>>> -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app >>>> -DartifactId=myproject >>>> >>>> mvn jetty:run-war >>>> [INFO] Scanning for projects... >>>> [INFO] Reactor build order: >>>> [INFO] AppFuse ModApp - SpringMVC >>>> [INFO] AppFuse ModApp - SpringMVC - Core >>>> [INFO] AppFuse ModApp - Web (Spring MVC) >>>> [INFO] Searching repository for plugin with prefix: 'jetty'. >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [ERROR] BUILD ERROR >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does >>>> not exist or no valid version could be found >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] For more information, run Maven with the -e switch >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Total time: 1 second >>>> [INFO] Finished at: Sun Mar 08 00:27:03 CST 2009 >>>> [INFO] Final Memory: 8M/146M >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>>> >>>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net