summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2008-10-07 11:32:01 +0000
committerBrett Porter <brett@apache.org>2008-10-07 11:32:01 +0000
commit919085da11bdc03af3b14f4e8928833b68548b0f (patch)
tree72847719d783e7d45e6322bd07102fc365ff7558
parentbe1e2c3186fe63da65035ab7fd5defb216d12fd9 (diff)
downloadarchiva-919085da11bdc03af3b14f4e8928833b68548b0f.tar.gz
archiva-919085da11bdc03af3b14f4e8928833b68548b0f.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/branches/archiva-database-decoupling@702435 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-docs/pom.xml35
-rw-r--r--pom.xml2
2 files changed, 35 insertions, 2 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>
diff --git a/pom.xml b/pom.xml
index 4b7541a34..ba3b3ca75 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,7 +64,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
- <version>1.0-alpha-3</version>
+ <version>1.0-alpha-4</version>
<executions>
<execution>
<goals>