/scalate-website/src/documentation/archetypes.page
Visualforce Page | 52 lines | 35 code | 17 blank | 0 comment | 0 complexity | b5d01717214b969cacb11e4f1964cd6f MD5 | raw file
- ---
- title: Maven Archetypes
- in_menu: false
- sort_info: 5
- --- name:overview
- # Maven Archetypes
- Scalate Maven Archetypes
- --- name:content pipeline:ssp,markdown
- <div class="left" markdown="1">
- # Maven Archetypes
- </div>
- <div class="right" markdown="1">
- 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=${project_version} \
- -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 ${project_version} release you can use this mechanism of creating the archetype
- mvn archetype:generate \
- -DarchetypeGroupId=org.fusesource.scalate.tooling \
- -DarchetypeArtifactId=scalate-archetype-guice \
- -DarchetypeVersion=${project_snapshot_version} \
- -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.
- </div>