------ Changing the Template File ------ Vincent Siveton Maria Odea Ching ------ 2009-03-08 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Changing the Template File It is possible to change the Velocity template used for creating the site. Save your custom template in a directory of your choice and configure the Site Plugin accordingly. <> If you use this method then skins and the default templates, CSS and images are disabled. It is therefor highly recommended that you package this as a {{{creatingskins.html}skin}} instead. For version 2.0-beta-5 and later you would add something like this to your <<>>: +-----+ ... org.apache.maven.plugins maven-site-plugin 2.0 ${basedir}/maven-site.vm ... +-----+ For version 2.0-beta-4 and earlier it was done by adding this to your <<>>: +-----+ ... org.apache.maven.plugins maven-site-plugin 2.0-beta-4 ${basedir} ... +-----+ Then you execute the site goal from your project: +-----+ mvn site +-----+ If you do not want to start from scratch you can start with the {{{https://svn.apache.org/repos/asf/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm}default template}} that is used by the Site Plugin. For more information about Velocity, see {{{http://velocity.apache.org/}http://velocity.apache.org/}}.