On Fri, Feb 27, 2009 at 1:21 PM, ant elder <[email protected]> wrote:
> How about we create some Maven archetypes to help users getting started > with projects using Tuscany? Maven archetypes can generate customized ready > to build projects so you don't need to download or install or manually setup > dependencies or anything (see [1] for more info). > > To show what thats like I've created a very simple one at > archetypes/quickstart which creates a simple SCA webapp project. To try it > you need to build the archetypes/quickstart module (if we'd released it to > the public maven repository you wouldn't need to build it), and then from an > empty folder run this command: > > mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -U > -DarchetypeGroupId=org.apache.tuscany.sca > -DarchetypeArtifactId=tuscany-archetype-quickstart > -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany > -DartifactId=myproject > > That creates a new SCA project, building it with mvn should create a ready > to use war file. The command is a bit of a mouthful as its currently using > an old version of the archetype plugin. > > It looks like it has potential to me, we could create variations on that > for the different Tuscany environments and extensions, or perhaps even > customize the plugin so you can specify the extensions you want to include > in the project on the command line. What do you think, worth exploring, > interested in helping? > > ...ant > > [1] > http://maven.apache.org/guides/introduction/introduction-to-archetypes.html > Having read a bit more about these you can specify the repository with a property so you don't need to build it first you can just use the command: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -U -DarchetypeGroupId=org.apache.tuscany.sca -DarchetypeArtifactId=tuscany-archetype-quickstart -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany -DartifactId=myproject -DremoteRepositories= http://people.apache.org/repo/m2-snapshot-repository/ ...ant
