summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2008-10-07 14:02:11 +0000
committerBrett Porter <brett@apache.org>2008-10-07 14:02:11 +0000
commitd321012d80c7319e5af3781eba17e6fec492f569 (patch)
tree260fd97403829201dfd1fef8325a326aec30a24f
parent01abdccd10c4aa160009331310fa7ad479163c6e (diff)
downloadarchiva-d321012d80c7319e5af3781eba17e6fec492f569.tar.gz
archiva-d321012d80c7319e5af3781eba17e6fec492f569.zip
fail release if the release notes have not yet been updated
Merged from: r702438:702458 on trunk git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.1.x@702487 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-docs/pom.xml34
-rw-r--r--archiva-jetty/pom.xml6
-rw-r--r--pom.xml2
3 files changed, 35 insertions, 7 deletions
diff --git a/archiva-docs/pom.xml b/archiva-docs/pom.xml
index a73919325..505fc1c58 100644
--- a/archiva-docs/pom.xml
+++ b/archiva-docs/pom.xml
@@ -106,6 +106,40 @@
</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( "${basedir}/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( "${basedir}/src/site/apt/release-notes.apt" ).indexOf( "Release Notes for Archiva ${project.version}" ) >= 0
+ ]]>
+ </condition>
+ </evaluateBeanshell>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
diff --git a/archiva-jetty/pom.xml b/archiva-jetty/pom.xml
index f8863a8cf..50e05d055 100644
--- a/archiva-jetty/pom.xml
+++ b/archiva-jetty/pom.xml
@@ -284,10 +284,4 @@
</plugin>
</plugins>
</build>
- <pluginRepositories>
- <pluginRepository>
- <id>codehaus.snapshots</id>
- <url>http://snapshots.repository.codehaus.org/</url>
- </pluginRepository>
- </pluginRepositories>
</project>
diff --git a/pom.xml b/pom.xml
index 2732c63d6..0bd6ad0be 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>