From 8b5942ab0d984ce1433d1c60c14e1d99ae1e2d5b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 29 Nov 2012 13:03:07 +0100 Subject: [PATCH 1/1] Documentation gets filterd now That way, the project-version does not need to be hardcoded in the documentation any more. --- pom.xml | 30 ++++++++++++++++++++++++++++++ src/site/apt/examples.apt | 12 ++++++------ 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 7bbb87b9..19180c96 100644 --- a/pom.xml +++ b/pom.xml @@ -165,11 +165,41 @@ install + + org.apache.maven.plugins + maven-resources-plugin + 2.3 + + + copy-resources + pre-site + + copy-resources + + + ${project.build.directory}/filtered-site + + + src/site + true + + + + + + + + maven-site-plugin + 2.1 + + ${project.build.directory}/filtered-site + + org.apache.maven.plugins maven-changes-plugin diff --git a/src/site/apt/examples.apt b/src/site/apt/examples.apt index da04a251..1c28320c 100644 --- a/src/site/apt/examples.apt +++ b/src/site/apt/examples.apt @@ -30,7 +30,7 @@ Configuration through a hibernate.properties-File de.juplo hibernate4-maven-plugin - 1.0-SNAPSHOT + ${project.version} @@ -54,7 +54,7 @@ Configuration through a hibernate.properties-File de.juplo hibernate4-maven-plugin - 1.0-SNAPSHOT + ${project.version} @@ -119,7 +119,7 @@ Configuration through maven-properties de.juplo hibernate4-maven-plugin - 1.0-SNAPSHOT + ${project.version} @@ -157,7 +157,7 @@ Configuration through the plugin-configuration de.juplo hibernate4-maven-plugin - 1.0-SNAPSHOT + ${project.version} @@ -222,7 +222,7 @@ Configuration through the plugin-configuration de.juplo hibernate4-maven-plugin - 1.0-SNAPSHOT + ${project.version} @@ -299,7 +299,7 @@ Known Pitfalls de.juplo hibernate4-maven-plugin - 1.0-SNAPSHOT + ${project.version} -- 2.20.1