Unfortunately, the Maven Archetype plugin is not bundled with Velocity tools. I added it by modifying the Maven Archetypes plugin. Complete the following steps, assuming you are using Maven 2.2.1:
svn co -q http://svn.apache.org/repos/asf/maven/archetype/tags/maven-archetype-2.2 cd maven-archetype-2.2 curl -k -O https://raw.github.com/gist/3404715/59c7fa1c20c60e2a165de4109c2acffb8026febd/velocity-tools.patch patch -p0 -i velocity-tools.patch mvn install
The modified Maven Archetype plugin will now be installed locally.
$date usage in your templates should now display, for example.
The date is $date
... in:
The date is Aug 20, 2012 4:40:22 PM
source share