You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2011/10/18 13:56:31 UTC

svn commit: r1185595 - /archiva/trunk/archiva-docs/pom.xml

Author: olamy
Date: Tue Oct 18 11:56:31 2011
New Revision: 1185595

URL: http://svn.apache.org/viewvc?rev=1185595&view=rev
Log:
no more need of those enforce rules as we use interpolation in those files

Modified:
    archiva/trunk/archiva-docs/pom.xml

Modified: archiva/trunk/archiva-docs/pom.xml
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-docs/pom.xml?rev=1185595&r1=1185594&r2=1185595&view=diff
==============================================================================
--- archiva/trunk/archiva-docs/pom.xml (original)
+++ archiva/trunk/archiva-docs/pom.xml Tue Oct 18 11:56:31 2011
@@ -47,7 +47,7 @@
         <executions>
           <execution>
             <id>site</id>
-            <phase>package</phase>
+            <phase>generate-resources</phase>
             <goals>
               <goal>site</goal>
             </goals>
@@ -128,40 +128,6 @@
               </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( "/index.html" )
-                        ]]>
-                      </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>