updated for version 2.1.0

Using ztemplates with maven#

ztemplates build is now done with maven version 2.2.1 or later. Version before 2.2.1 (like 2.0.9) have problems doing the tests, so use with -DskipTests if you cannot change to later version. It is advisable though not required to use maven2 for your ztemplates projects. See the demos for a starting point.

ztemplates versions after 2.0.0 are available from central maven repository#


Snapshots of not released versions can be found in https://oss.sonatype.org/content/repositories/snapshots/org/ztemplates/ztemplates/


Because the ztemplates resources (velocity/freemarker templates, css files) are typically placed in the same directory as the java files you have to tell maven2 to include resources from the src/main/java directory, and exclude the java files.

Add the following lines to your pom.xml:


This will include all necessary files from "src/main/java" into your build artifacts.

Running a ztemplates application with the maven tomcat plugin#

The current version can be run with

mvn tomcat:run-war

The following will not work, as the classes and resources are not available in the webapp classpath.

mvn tomcat:run 

Neuen Anhang hinzuf�gen

Du bist nicht autorisiert, Anh�nge zu dieser Seite hochzuladen.
« Diese Seite (Version-) wurde zuletzt am 29-Dez-2011 12:07 von gerdziegler.de ge�ndert.