diff options
author | Brett Porter <brett@apache.org> | 2008-10-07 14:02:11 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2008-10-07 14:02:11 +0000 |
commit | d321012d80c7319e5af3781eba17e6fec492f569 (patch) | |
tree | 260fd97403829201dfd1fef8325a326aec30a24f | |
parent | 01abdccd10c4aa160009331310fa7ad479163c6e (diff) | |
download | archiva-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.xml | 34 | ||||
-rw-r--r-- | archiva-jetty/pom.xml | 6 | ||||
-rw-r--r-- | pom.xml | 2 |
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> @@ -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> |