Create a Skeleton Tapestry project
It is convenient to have a special directory for the project skeletons created by
Maven. So please create such a directory (say, C:\tapestry5\work) and open the
command prompt or a terminal window into it.
Enter the following command (it should be all on one line and is broken into several
lines only because it would not fit into the page width otherwise):
mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -Darchety
peArtifactId=quickstart -DgroupId=com.packtpub -DartifactId=t5first -
DpackageName=com.packtpub.t5first -Dversion=1.0.0-SNAPSHOT
In this command we are asking Maven to do the following:
archetype:create: We ask Maven to create a new project using an existing
project template (or archetype, as Maven calls it).
DarchetypeGroupId=org.apache.tapestry: This is one of the Tapestry
archetypes; now Maven knows in which group of archetypes to look for it.
DarchetypeArtifactId=quickstart: The actual name for the archetype.
??? ??? ???
Chapter 2
[ 23 ]
DgroupId=com.packtpub: This is a group to which the new project will
belong. I have given it the reversed URL of the publisher's website, but you
can use any other name if you wish.
Pages:
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49