aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-docs
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2008-10-07 11:40:56 +0000
committerBrett Porter <brett@apache.org>2008-10-07 11:40:56 +0000
commit0472bf7af1b594ea704d9fa70dd4e06db8aee450 (patch)
tree767f59b20cad781ed456d44cd5754854c6c49702 /archiva-docs
parent30972517d7990184d89c10f52343189e8778300a (diff)
downloadarchiva-0472bf7af1b594ea704d9fa70dd4e06db8aee450.tar.gz
archiva-0472bf7af1b594ea704d9fa70dd4e06db8aee450.zip
check the release notes and site descriptor version during release until it can be substituted
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@702438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-docs')
-rw-r--r--archiva-docs/pom.xml35
1 files changed, 34 insertions, 1 deletions
diff --git a/archiva-docs/pom.xml b/archiva-docs/pom.xml
index bd38f139e..dba5d0199 100644
--- a/archiva-docs/pom.xml
+++ b/archiva-docs/pom.xml
@@ -106,9 +106,42 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-beanshell</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <evaluateBeanshell>
+ <message>Site descriptor needs to be updated for the current release version</message>
+ <condition>
+ <![CDATA[
+ javax.xml.xpath.XPath xpath = javax.xml.xpath.XPathFactory.newInstance().newXPath();
+ org.xml.sax.InputSource is = new org.xml.sax.InputSource( new java.io.FileInputStream( "src/site/site.xml" ) );
+ xpath.evaluate( "//project/body/breadcrumbs/item[@name='${project.version}']/@href", is ).equals( "/docs/${project.version}" )
+ ]]>
+ </condition>
+ </evaluateBeanshell>
+ <evaluateBeanshell>
+ <message>Release notes need to be updated for the current release version</message>
+ <condition>
+ <![CDATA[
+ org.codehaus.plexus.util.FileUtils.fileRead( "src/site/apt/release-notes.apt" ).indexOf( "Release Notes for Archiva ${project.version}" ) >= 0
+ ]]>
+ </condition>
+ </evaluateBeanshell>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
</profiles>
-
</project>