Dashboard > Stripes > ... > Quick Start Guide > Maven2 Archetype for Stripes
Maven2 Archetype for Stripes Log In | Sign Up   View a printable version of the current page.

Added by Chaminda Amarasinghe , last edited by DJDaveMark on Jun 05, 2009  (view change)

Prerequisites

  • Maven2 must already be installed
  • Basic knowledge of maven

If the stripes quickstart archetype is aleady installed, jump to "Create Project"

Repository

At this point the archetype has not been installed into any maven repositories.

Download

Download the archetype manually from the mvnstripes sourceforge project. The latest released version of the archetype is stripes-quickstart-1.0.

Install

Use the regular maven install plugin to install the downloaded file (the archetype). Execute the following command from the directory to where the archetype was downloaded (remove the "\" characters so the command is all on one line):

mvn install:install-file \
-Dfile=stripes-archetype-quickstart-1.0.jar \
-DgroupId=net.sourceforge \
-DartifactId=stripes-archetype-quickstart \
-Dversion=1.0 -Dpackaging=jar

The above command only ever needs to be executed once.

Create Project

The following command uses the previously installed archetype to create a stripes project

mvn archetype:create \
-DarchetypeArtifactId=stripes-archetype-quickstart \
-DarchetypeGroupId=net.sourceforge \
-DarchetypeVersion=1.0 \
-DgroupId=myGroup \
-DartifactId=stripesTest

<<Thanks goes to Randy Jones for his 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

Hosting for this site is donated by the wonderful people at Contegix
Site running on a free Atlassian Confluence Open Source Project License granted to Stripes Framework. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators