On 9/5/07, Justen Stepka <[EMAIL PROTECTED]> wrote: > A couple of weeks ago I sat down and started doing an investigation of > AppFuse given all the wonderful things Matt has been saying about > Atlassian and how the appfuse project development tools are now > integrated with crowd. > > One of the things I was really excited to see in today's release was > the support for multiple module source support with the 2.0 rc1. > > The generation has presented quite a few hurdles.. here is my workflow: > > I started out with a struts2 modular framework by running the following > command: > > mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes > -DarchetypeArtifactId=appfuse-modular-struts > -DremoteRepositories=http://static.appfuse.org/releases > -DarchetypeVersion=2.0-rc1 -DgroupId=com.devvine.crm -DartifactId=crm > > [INFO] Archetype created in dir: /Users/jstepka/Projects/devvine/crm > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2 seconds > [INFO] Finished at: Wed Sep 05 16:20:34 EST 2007 > [INFO] Final Memory: 4M/8M > [INFO] > ------------------------------------------------------------------------ > > Everything works out well enough... following the instructions on the > quick start guide, I need to run 'mvn install' to build the project > before I can run jetty: > > jstepka-osx:~/Projects/devvine/crm jstepka$ mvn install > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] AppFuse Modular Application > [INFO] AppFuse Modular Application - Core > [INFO] AppFuse Modular Application - Web (Struts 2) > [INFO] > ---------------------------------------------------------------------------- > > great... I have now have my project modules built, lets run it... > > jstepka-osx:~/Projects/devvine/crm jstepka$ mvn jetty:run-war > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] AppFuse Modular Application > [INFO] AppFuse Modular Application - Core > [INFO] AppFuse Modular Application - Web (Struts 2) > [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: Wed Sep 05 16:22:54 EST 2007 > [INFO] Final Memory: 3M/6M > [INFO] > ------------------------------------------------------------------------ > > It turns out the plugin for jetty is not part of the root pom.xml. > This was simple enough to fix, I added the following files to the > pom.xml [SNIP] >
Hi Justen, `mvn jetty:run-war` should be run in web instead of the root directory for modular projects. http://appfuse.org/display/APF/AppFuse+QuickStart <quote> If you're using a modular archetype, you'll need to run mvn jetty:run-war from your project's web directory. </quote> -- Ealden Esto E. Escañan http://ealden.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
