I thought I had tested it since I specifically removed the invoker restriction in r1091342, but now I can reproduce the failure too, so I reverted the revert...

-Lukas


Dennis Lundberg wrote:
This IT is now failing on the grid when run with Maven 3 on both Windows
and Ubuntu.

https://grid.sonatype.org/ci/job/maven-plugins-ITs/jdk=java-5x,label=windows/ws/trunk/maven-site-plugin/target/it/MSITE-456/build.log/*view*/

https://grid.sonatype.org/ci/job/maven-plugins-ITs/jdk=java-5x,label=ubuntu/ws/trunk/maven-site-plugin/target/it/MSITE-456/build.log/*view*/

I get the same result locally on Windows.


[email protected] skrev 2011-04-12 11:11:
Author: ltheussl
Date: Tue Apr 12 09:11:57 2011
New Revision: 1091331

URL: http://svn.apache.org/viewvc?rev=1091331&view=rev
Log:
add IT

Added:
     maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/
     maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/child/
     maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/child/pom.xml
     maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/invoker.properties
     maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/pom.xml
     maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/verify.bsh

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/child/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/child/pom.xml?rev=1091331&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/child/pom.xml (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/child/pom.xml Tue 
Apr 12 09:11:57 2011
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+<modelVersion>4.0.0</modelVersion>
+
+<parent>
+<groupId>msite-456</groupId>
+<artifactId>parent</artifactId>
+<version>0.1</version>
+<relativePath>../pom.xml</relativePath>
+</parent>
+
+<artifactId>child</artifactId>
+<name>MSITE-456 - child</name>
+<packaging>pom</packaging>
+
+</project>

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/invoker.properties
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/invoker.properties?rev=1091331&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/invoker.properties 
(added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/invoker.properties 
Tue Apr 12 09:11:57 2011
@@ -0,0 +1 @@
+invoker.maven.version = 3.0-

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/pom.xml?rev=1091331&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/pom.xml (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/pom.xml Tue Apr 12 
09:11:57 2011
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+<modelVersion>4.0.0</modelVersion>
+
+<groupId>msite-456</groupId>
+<artifactId>parent</artifactId>
+<version>0.1</version>
+<name>MSITE-456 - parent</name>
+<packaging>pom</packaging>
+
+<build>
+<pluginManagement>
+<plugins>
+<plugin>
+<groupId>org.apache.maven.plugins</groupId>
+<artifactId>maven-site-plugin</artifactId>
+<version>@project.version@</version>
+</plugin>
+</plugins>
+</pluginManagement>
+</build>
+
+<reporting>
+<plugins>
+<plugin>
+<groupId>org.apache.maven.plugins</groupId>
+<artifactId>maven-project-info-reports-plugin</artifactId>
+<version>2.3.1</version>
+<reportSets>
+<reportSet>
+<reports>
+<report>index</report>
+</reports>
+</reportSet>
+</reportSets>
+</plugin>
+</plugins>
+</reporting>
+
+<modules>
+<module>child</module>
+</modules>
+
+</project>

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/verify.bsh
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/verify.bsh?rev=1091331&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/verify.bsh (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-456/verify.bsh Tue Apr 
12 09:11:57 2011
@@ -0,0 +1,93 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.*;
+import org.codehaus.plexus.util.*;
+
+boolean result = true;
+
+try
+{
+    File parentSiteDirectory = new File ( basedir, "target/site" );
+    if ( !parentSiteDirectory.exists() || !parentSiteDirectory.isDirectory() )
+    {
+        System.err.println( "parent site is missing or not a directory." );
+        result = false;
+    }
+
+    File parentIndex = new File ( parentSiteDirectory, "index.html" );
+    if ( !parentIndex.exists() || parentIndex.isDirectory() )
+    {
+        System.err.println( "no index file in parent or is a directory." );
+        result = false;
+    }
+
+    String content = IOUtil.toString ( new FileInputStream ( parentIndex ), 
"UTF-8" );
+    int index1 = content.indexOf( "<a href=\"child/index.html\" title=\"MSITE-456 - 
child\">MSITE-456 - child</a>" );
+    int index2 = content.indexOf( "<a href=\"project-info.html\" title=\"Project 
Information\">Project Information</a>" );
+
+
+    if ( index1<  0 || index2<  0 )
+    {
+        System.err.println( "parent index.html has wrong navigation menu!" );
+        result = false;
+    }
+
+    // CHILD
+
+
+    File childDirectory = new File ( basedir, "child" );
+    if ( !childDirectory.exists() || !childDirectory.isDirectory() )
+    {
+        System.err.println( "child is missing or not a directory." );
+        result = false;
+    }
+
+    File childSiteDirectory = new File ( childDirectory, "target/site" );
+    if ( !childSiteDirectory.exists() || !childSiteDirectory.isDirectory() )
+    {
+        System.err.println( "child site is missing or not a directory." );
+        result = false;
+    }
+
+    File childIndex = new File ( childSiteDirectory, "index.html" );
+    if ( !childIndex.exists() || childIndex.isDirectory() )
+    {
+        System.err.println( "no index file in child or is a directory." );
+        result = false;
+    }
+
+    content = IOUtil.toString ( new FileInputStream ( childIndex ), "UTF-8" );
+    index1 = content.indexOf( "<a href=\"../index.html\" title=\"MSITE-456 - 
parent\">MSITE-456 - parent</a>" );
+    index2 = content.indexOf( "<a href=\"project-info.html\" title=\"Project 
Information\">Project Information</a>" );
+
+    if ( index1<  0 || index2<  0 )
+    {
+        System.err.println( "child index.html has wrong navigation menu!" );
+        result = false;
+    }
+}
+catch( IOException e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to