Author: brett
Date: Tue Oct 7 07:02:11 2008
New Revision: 702487
URL: http://svn.apache.org/viewvc?rev=702487&view=rev
Log:
fail release if the release notes have not yet been updated
Merged from: r702438:702458 on trunk
Modified:
archiva/branches/archiva-1.1.x/archiva-docs/pom.xml
archiva/branches/archiva-1.1.x/archiva-jetty/pom.xml
archiva/branches/archiva-1.1.x/pom.xml
Modified: archiva/branches/archiva-1.1.x/archiva-docs/pom.xml
URL:
http://svn.apache.org/viewvc/archiva/branches/archiva-1.1.x/archiva-docs/pom.xml?rev=702487&r1=702486&r2=702487&view=diff
==============================================================================
--- archiva/branches/archiva-1.1.x/archiva-docs/pom.xml (original)
+++ archiva/branches/archiva-1.1.x/archiva-docs/pom.xml Tue Oct 7 07:02:11 2008
@@ -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/[EMAIL
PROTECTED]'${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>
Modified: archiva/branches/archiva-1.1.x/archiva-jetty/pom.xml
URL:
http://svn.apache.org/viewvc/archiva/branches/archiva-1.1.x/archiva-jetty/pom.xml?rev=702487&r1=702486&r2=702487&view=diff
==============================================================================
--- archiva/branches/archiva-1.1.x/archiva-jetty/pom.xml (original)
+++ archiva/branches/archiva-1.1.x/archiva-jetty/pom.xml Tue Oct 7 07:02:11
2008
@@ -284,10 +284,4 @@
</plugin>
</plugins>
</build>
- <pluginRepositories>
- <pluginRepository>
- <id>codehaus.snapshots</id>
- <url>http://snapshots.repository.codehaus.org/</url>
- </pluginRepository>
- </pluginRepositories>
</project>
Modified: archiva/branches/archiva-1.1.x/pom.xml
URL:
http://svn.apache.org/viewvc/archiva/branches/archiva-1.1.x/pom.xml?rev=702487&r1=702486&r2=702487&view=diff
==============================================================================
--- archiva/branches/archiva-1.1.x/pom.xml (original)
+++ archiva/branches/archiva-1.1.x/pom.xml Tue Oct 7 07:02:11 2008
@@ -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>