]> source.dussan.org Git - archiva.git/commitdiff
no more need of those enforce rules as we use interpolation in those files
authorOlivier Lamy <olamy@apache.org>
Tue, 18 Oct 2011 11:56:31 +0000 (11:56 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 18 Oct 2011 11:56:31 +0000 (11:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1185595 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/pom.xml

index f550ca2818e7d194f895c945f0edeb9dad39eb14..46602ac3a6586a1045b27bb602edfaf3a75f32b3 100644 (file)
@@ -47,7 +47,7 @@
         <executions>
           <execution>
             <id>site</id>
-            <phase>package</phase>
+            <phase>generate-resources</phase>
             <goals>
               <goal>site</goal>
             </goals>
               </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>