/* * Copyright 2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Shale Blank Archetype ===================== This directory contains the Shale Clay Blank Archetype for Maven 2. To use the archetype to create a blank project (substituting in names that apply to your settings): $ cd ~/projects $ mvn archetype:create \ -DarchetypeGroupId=org.apache.shale.clay \ -DarchetypeArtifactId=clay-starter-archetype \ -DarchetypeVersion=1.0-SNAPSHOT \ -DgroupId=com.example \ -DpackageName=com.example.projectname \ -DartifactId=projectname \ To build your new webapp and install it in your local Maven repository: $ cd projectname $ mvn install To enable eclipse (3.2): $ cd projectname $ mvn eclipse:eclipse -Dwtpversion=1.5 To start Tomcat and deploy your new webapp (substituting the path to your Tomcat installation) : $ mvn package cargo:start -Dcargo.tomcat5x.home=/apache/tomcat-5.5.17 Open a browser and visit http://localhost:8080/projectname To build and install the archetype in your local repository: $ svn co https://svn.apache.org/repos/asf/shale/sandbox/maven $ cd archetypes/shale-clay-starter-archetype $ mvn install Prerequisites ------------- Maven 2 from http://maven.apache.org Cargo Configuration ------------------- The Cargo plugin can be configured to download Apache Tomcat 5.5.17 by (in pom.xml) removing the element and uncommenting the section.