DartifactId=t5first: The name for the project itself. Again, use another
one if you wish.
DpackageName=com.packtpub.t5first: The package into which the
project's Java classes will be placed. It is logically made of the two preceding
pieces of information, but not necessarily so.
Dversion=1.0.0-SNAPSHOT: This is not required, but it gives the future
application some reasonable version number.
You will need to enter this command every time you want to create a new Tapestry
project, but there is no need to memorize it or to type it by hand. One of the ways to
simplify things is to have a text file with different versions of this command. You can
easily change the details, like package name, and then just copy the command and
paste it into the command line. In fact, you do not even need to create such a text file
yourself, as I have already created it for you and put it into the code package for this
chapter under the mvn_commands.txt name.
When the command is entered, Maven begins its work. It downloads all the required
files and stores them in a repository on your computer, then creates a skeleton of the
Tapestry project. Naturally, you need to be connected to the Internet at this time.
Pages:
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50