hum, I use this all the time: mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starter \ -DarchetypeVersion=2.0.11.2
I does take a few times setting it up to learn all the gotchas :) musachy On Tue, Nov 10, 2009 at 4:05 AM, reason <k...@pop.gr> wrote: > > thanks musachy > > that was actually my initial attempt but it ran aground (see below) so i > gave up and did it the hard way > > [kos...@ares tmp]$ echo $JAVA_HOME;echo;echo;mvn archetype:create > -DgroupId=tutorial -DartifactId=tutorial > -DarchetypeGroupId=org.apache.struts > -DarchetypeArtifactId=struts2-archetype-starter > -DarchetypeVersion=2.0.11 > -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository > /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 > > > Warning: JAVA_HOME environment variable is not set. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Maven Default Project > [INFO] task-segment: [archetype:create] (aggregator-style) > [INFO] > ------------------------------------------------------------------------ > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] [archetype:create {execution: default-cli}] > [WARNING] This goal is deprecated. Please use mvn archetype:generate instead > [INFO] Defaulting package to group ID: tutorial > [INFO] We are using command line specified remote repositories: > http://people.apache.org/repo/m2-snapshot-repository > Downloading: > http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-archetype-starter/2.0.11/struts2-archetype-starter-2.0.11.jar > [INFO] Unable to find resource > 'org.apache.struts:struts2-archetype-starter:jar:2.0.11' in repository id0 > (http://people.apache.org/repo/m2-snapshot-repository) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error creating from archetype > > Embedded error: > org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested > download does not exist. > Unable to download the artifact from any repository > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 6 seconds > [INFO] Finished at: Tue Nov 10 14:02:53 EET 2009 > [INFO] Final Memory: 8M/14M > [INFO] > ------------------------------------------------------------------------ > [kos...@ares tmp]$ > > > that's why i'm talking about a steep learning curve. it's all fun though... > hihi > -- > View this message in context: > http://old.nabble.com/struts-2-helloWorld-example-not-properly-working-in-tomcat-5.5-tp26240890p26282285.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org