It first created
all the necessary files under the \src subdirectory and then created the
structure of the future application under the \target subdirectory. You
will follow my logic more easily if you spend some time looking at the
picture of the directories, and compare it with the structure you've got on
your computer.
Under the \target subdirectory, we will find the result of building and packaging
the application by Maven. There is already the end product, t5first.war file. We can
take it and deploy it on a Java-enabled web server (like Tomcat). It has everything
required for a Tapestry Web application.
However, there are also the intermediate results of Maven's work. The \classes
subdirectory contains compiled Java classes, while under \t5first, you will find
a familiar template file, Start.tml, and under \t5first\WEB-INF, the deployment
descriptor web.xml. Most remarkably, the \t5first\WEB-INF\lib subdirectory
contains all the necessary libraries downloaded for us by Maven from across the
Internet. We didn't have to figure out what is required and where to get it.
At this point, we can thank Maven for its service as we are going further. The next
step is to start working with the source of the application, building it and deploying
to a server.
Pages:
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53