Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Next, issue the following command (on a single line):

Code Block

mvn archetype:generate -DarchetypeCatalog=http://tynamo.org

...

If you really want to use snapshot archetypes, use:

Code Block

mvn archetype:generate -DarchetypeCatalog=httphttps://cinexus.repository.codehaus.org/orgcontent/tynamogroups/tynamosnapshots-archetypegroup/

Enter suitable values on the command line, for example:

Code Block

Choose archetype:
1: http://tynamo.org -> tynamo-archetype (Model-driven web framework based on Tapestry 5)
Choose a number: : 1
Define value for property 'groupId': : com.test
Define value for property 'artifactId': : testme
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.test:
Confirm properties configuration:
groupId: com.test
artifactId: testme
version: 1.0-SNAPSHOT
package: com.test
Y: Y

...

Starting up your application is super simple, just go into your new project directory and do:

Code Block

mvn jetty:run

This will download all dependencies, build your project and start it in the jetty container. Be warned, this can take some time, especially if you just started using maven. If any downloads fail, try running this again. Sometimes the maven repositories get bogged down. When everything finishes, you will now be able to go to http://localhost:8080/

...

Setting up an Eclipse project is also very simple. First, you will need to tell Eclipse how to find your maven repository. This is a one time step for each Eclipse workspace:

Code Block

mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

Now do:

Code Block

mvn eclipse:eclipse

You should now be able import your project into Eclipse and ready to add your own domain classes!