Maven2 Archetype for Stripes
Prerequisites
- Maven2 must already be installed
- Basic knowledge of maven
Create Project
The following command uses the download URL of the archtype (minus the file name) as a repository to create a stripes project
mvn archetype:create \ -DarchetypeArtifactId=stripes-archetype-quickstart \ -DarchetypeGroupId=net.sourceforge \ -DarchetypeVersion=1.0 \ -DgroupId=myGroup \ -DartifactId=stripesTest \ -DarchetypeRepository=http://sourceforge.net/projects/mvnstripes/files/stripes-quickstart-1.0/1.0
<<Thanks goes to Randy Jones and Rusty Wright for their corrections...>>
During the execution of the create command maven will ask you to specify the project information. For the purpose of this guide an artifactId of "stripesTest" has been used as the name for our new project.
Run the Application
From your project directory (the artifactId "stripesTest") execute the following command:
mvn jetty:run
After jetty starts, navigate to "http://localhost:8080/stripesTest/"
If you did everything correctly, you will see the following:
Congratulations, you've set up a Stripes project!
You are running Java version <your java version> on the <your operating system> operating system
If you see that page... Congratulations! You can start programing with Stripes
If you encounter any problems with the stripes quickstart archetype, either post something here or send me an email: chamtem at gmail dot com