Hi everyone, remember our beloved T5? So let's configure a test application from the start:
1) Download this guy -> eclipse-jee-galileo-win32.rar and set your OS environment to work with Java (if you don't know how to do that..., well, just go
here).
2) Ok, now download
Jetty (5.1) and
Maven (2.0.10) and place them in a folder and create the MAVEN_HOME and the JETTY_HOME environments variables.
3) After doing that, run the following command (remove the line breaks) from the desired place where you want to create your first project:
mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial1
4) To avoid a Jetty plugin error, create a file called "settings.xml" inside the Maven root folder:
example: "C:\Documents and Settings\marcelo\.m2\"
and put the following configuration:
<. pluginGroups
>
<. pluginGroup
> org.mortbay.jetty < / pluginGroup >
< / pluginGroups >
You will also have to add some missing folders under:
tutorial1\src\main
add the "webapp" folder and inside it, add the "WEB-INF" folder and create a standard "web.xml" file.
5) Now navigate through your prompt until you reach your project's home directory (tutorial1)
and issue the following command:
mvn jetty:run
This way, you have just compiled and started your first Tapestry 5 application that is running on yor Jetty app server. (http://localhost/tutorial1).
The repositories are providing a lame test application (the old one was way better), to see real action you will have to create some more files. But, for now, just create a file called "index.jsp" under "tutorial1\src\main\webapp" and put some text in it and refresh your browser.
Next post, we will configure our Eclipse IDE and create a simple web application.
See ya!