Maven Archetypes

Scalate Maven Archetypes

# Maven Archetypes
Scalate provides a number of [Maven](http://maven.apache.org/) archetypes to kick start you creating new projects using Scalate. The easiest way to get started is to install the [Scalate Tool](tool.html) and use that as described in the [Getting Started Guice](getting-started.html) However if you want to miss out the [installation step for Scalate Tool](tool.html) you can just use Maven directly - though be aware it is a little more brittle and verbose!. The rest of this page describes how to use maven directly to create projects using the archetypes. If you have Maven installed you should be able to create a new project by typing this mvn org.apache.maven.plugins:maven-archetype-plugin:2.0:generate \ -DarchetypeGroupId=org.fusesource.scalate.tooling \ -DarchetypeArtifactId=scalate-archetype-guice \ -DarchetypeVersion=1.4.0 \ -DarchetypeRepository=http://repo.fusesource.com/nexus/content/repositories/public \ -DgroupId=myGroup -DartifactId=myArtifact -Dversion=1.0-SNAPSHOT You might want to change the last line changing **myGroup** and **myArtifact** to whatever maven groupId and artifactId you want to use. The maven archetype plugin will ask you to hit enter to confirm those settings. For detail see the [Getting Started Guide](getting-started.html) ## Using the latest snapshot If you want to take advantage of any improvements in the console and archetypes since the 1.4.0 release you can use this mechanism of creating the archetype mvn archetype:generate \ -DarchetypeGroupId=org.fusesource.scalate.tooling \ -DarchetypeArtifactId=scalate-archetype-guice \ -DarchetypeVersion=1.5.0-SNAPSHOT \ -DarchetypeRepository=http://repo.fusesource.com/nexus/content/repositories/snapshots \ -DgroupId=myGroup -DartifactId=myArtifact -Dversion=1.0-SNAPSHOT This will use the latest snapshot of the archetype instead.