On Fri, Feb 27, 2009 at 2:17 PM, Dan Becker <[email protected]> wrote:


 The command looks a bit large, but with cut and paste or some sort of link
> from a page, it should be easy for a new user to operate.
>

I've done some updates to use the newer archetype style so now you can use
"mvn archetype:generate" which is a bit more concise, and I've added an
archetype catalog to the Tuscany website so you can point at that and get
interactive prompting to choose the archetype and configure the new project.
Right now you still need to specify the ASF snapshot repository but once
we've done a release that includes the archetypes that wont be required.

So now you can do:

mvn archetype:generate -DarchetypeCatalog=
http://tuscany.apache.org/archetypes -DarchetypeRepository=
http://people.apache.org/repo/m2-snapshot-repository

that then prompts you for the archetype (we've only the one so far), the
groupid, artifactid and package names to use, and it creates the new project
in a folder named after the artifactid. (go on try it, you don't need to
install or download anything just paste that command into a command prompt)

That generated project also has the Maven Jetty plugin configured so you
don't need to deploy the war to Tomcat to run the sample you can just use
"mvn jetty:run"

This is looking really useful and user friendly to me. How about we set up
archetypes for all the high level scenarios we have in Tuscany, and also
perhaps in the distribution change the samples for those scenarios so that
they match the projects generated by the archetypes.

   ...ant

Reply via email to