Creating The Skeleton ApplicationPage edited by Massimo LusettiChanges (4)
Full ContentUsing the Quickstart ArchetypeBefore we can get down to the fun, we have to create an empty application. Tapestry uses a feature of Maven to do this: archetypes (a too-clever way of saying "project templates"). What we'll do is create an empty shell application using Maven, then import the application into Eclipse to do the rest of the work. For the tutorial, we're using a fresh install of Eclipse and an empty workspace at /Users/Howard/Documents/workspace 1 . You may need to adjust a few things for other operating systems or local paths. From our workspace directory, we'll use Maven to create a skeleton Tapestry project. Before proceeding, we have to decide on four things: A Maven group id and artifact id for our project, a version, and a base package name. Maven uses the group id and artifact id to provide a unique identity for the application, and Tapestry needs to have a base package name so it knows where to look for pages and components. For this example, we'll use the group id com.example, artifact id tutorial1, version 1.0-SNAPSHOT and we'll use com.example.tutorial as the base package. Our final command line is:
mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org
Change Notification Preferences
View Online
|
View Changes
|
- [CONF] Apache Tapestry > Creating The Skeleton Application confluence
- [CONF] Apache Tapestry > Creating The Skeleton Applicat... confluence
- [CONF] Apache Tapestry > Creating The Skeleton Applicat... confluence
- [CONF] Apache Tapestry > Creating The Skeleton Applicat... confluence