Dear Wiki user, You have subscribed to a wiki page or wiki category on "Shale Wiki" for change notification.
The following page has been changed by Hermod Opstvedt: http://wiki.apache.org/shale/ShaleAndClayTutorial ------------------------------------------------------------------------------ - * Getting started with Shale and Clay + = Getting started with Shale and Clay = + == Preface == + + This tutorial is based on Maven and Eclipse. The guidelines also apply to any other scenario, but you must find the appropriate way of doing it within your IDE. The attached zip file contains a complete Maven/Eclipse project which you may use as basis for this. + + The easiest way to get started with Shale and Clay is by starting with the Maven2 clay-starter archetype. + + Since the archetype currently has not made its way into the distribution, you will need to get the archetype from the Shale Subversion repository located at: + + https://svn.apache.org/repos/asf/shale/sandbox/maven/archetypes/shale-clay-starter-archetype + + After you have downloaded the sources, you need to run the following Maven2 command in the shale-starter-archetype directory: + + mvn clean install. + + This will build the archetype and install into your local repository so that it is available to you. + + Create a directory where you want the project, ex. C:\My projects\ShaleClay. Open a shell (CMD) and type in (on one line): + + mvn archetype:create -DarchetypeGroupId=org.apache.shale.clay -DarchetypeArtifactId=clay-starter-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.acme.test -DpackageName=com.acme.test -DartifactId=shaleclay + + What happens here is that Maven will create a project based on Shale and Clay. The parameters are: + + * archetypeGroupId â The archetype groupId<br/> + * archetypeArtifactId â The archetype artifactId <br/> + * archetypeVersion â The archetype version number<br/> + * groupId â The groupId of you project<br/> + * packageName â The default package name of your project â included source is placed here<br/> + * artifactId - The groupId of you project <br/> + + After you have done his, a project will have been created for you in a directory with the same name as you gave for the artifactId. Move to this directory. + + To make Eclipse understand that this is an Eclipse project you need to run the following Maven2 command. + + mvn eclipse:eclipse âDwtpversion=1.5 + + After running this command a couple of files and a directory will be created, that is need for Eclipse. Your layout should look something like this: + + attachement:shaleclaydir.gif +