You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/05/29 16:20:35 UTC

svn commit: r1598303 - in /maven/plugins/trunk/maven-site-plugin/src/it/failure: ./ src/ src/site-doxia-parse/ src/site-doxia-parse/apt/ target/ target/classes/ target/classes/it/ target/maven-archiver/

Author: hboutemy
Date: Thu May 29 14:20:35 2014
New Revision: 1598303

URL: http://svn.apache.org/r1598303
Log:
[MSITE-713] added IT to get traces of failures in misc conditions: normal vs debug, Doxia parsing error vs report plugin

Added:
    maven/plugins/trunk/maven-site-plugin/src/it/failure/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/build.log
    maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/failure/src/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/classes/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/classes/it/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/classes/it/Main.class   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/failure-1.0-SNAPSHOT.jar   (with props)
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/
    maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties   (with props)

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/build.log
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/build.log?rev=1598303&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/failure/build.log (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/failure/build.log Thu May 29 14:20:35 2014
@@ -0,0 +1,27 @@
+Warning: JAVA_HOME environment variable is not set.
+[INFO] Scanning for projects...
+[INFO] ------------------------------------------------------------------------
+[INFO] Building maven-site-plugin IT: reporting failure test
+[INFO]    task-segment: [package]
+[INFO] ------------------------------------------------------------------------
+[INFO] [resources:resources {execution: default-resources}]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/herve/projets/maven/trunks/plugins/maven-site-plugin/src/it/failure/src/main/resources
+[INFO] [compiler:compile {execution: default-compile}]
+[INFO] Compiling 1 source file to /home/herve/projets/maven/trunks/plugins/maven-site-plugin/src/it/failure/target/classes
+[INFO] [resources:testResources {execution: default-testResources}]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/herve/projets/maven/trunks/plugins/maven-site-plugin/src/it/failure/src/test/resources
+[INFO] [compiler:testCompile {execution: default-testCompile}]
+[INFO] No sources to compile
+[INFO] [surefire:test {execution: default-test}]
+[INFO] No tests to run.
+[INFO] [jar:jar {execution: default-jar}]
+[INFO] Building jar: /home/herve/projets/maven/trunks/plugins/maven-site-plugin/src/it/failure/target/failure-1.0-SNAPSHOT.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESSFUL
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time: 2 seconds
+[INFO] Finished at: Thu May 29 10:32:07 CEST 2014
+[INFO] Final Memory: 14M/310M
+[INFO] ------------------------------------------------------------------------

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties?rev=1598303&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties Thu May 29 14:20:35 2014
@@ -0,0 +1,28 @@
+# 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.
+
+invoker.buildResult = failure
+invoker.debug = false
+
+# --log-file option is only supported by Maven 3
+invoker.maven.version = 3.0+
+invoker.goals.1 = --log-file report-plugin.log -Preport-plugin site
+invoker.goals.2 = --log-file report-plugin-debug.log -Preport-plugin site
+invoker.debug.2 = true
+invoker.goals.3 = --log-file doxia-parse.log -Pdoxia-parse site
+invoker.goals.4 = --log-file doxia-parse-debug.log -Pdoxia-parse site
+invoker.debug.4 = true

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/invoker.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml?rev=1598303&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml Thu May 29 14:20:35 2014
@@ -0,0 +1,108 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.site.its</groupId>
+  <artifactId>failure-it</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>maven-site-plugin IT: reporting failure test</name>
+  <description>
+    check output in misc failure conditions, activated by profiles
+  </description>
+  <url>http://maven.apache.org</url>
+
+  <properties>
+    <projectInfoReportsPluginVersion>@projectInfoReportsPluginVersion@</projectInfoReportsPluginVersion>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <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>${projectInfoReportsPluginVersion}</version>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>index</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+
+  <profiles>
+    <profile>
+      <id>doxia-parse</id>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <configuration>
+                <siteDirectory>src/site-doxia-parse</siteDirectory>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+    <profile>
+      <id>report-plugin</id>
+      <reporting>
+        <plugins>
+          <plugin>
+            <artifactId>maven-changelog-plugin</artifactId>
+            <version>2.2</version>
+          </plugin>
+        </plugins>
+      </reporting>
+    </profile>
+  </profiles>
+</project>

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt?rev=1598303&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt Thu May 29 14:20:35 2014
@@ -0,0 +1,34 @@
+ ------
+ Doxia Parsing Failure Test
+ ------
+ Hervé Boutemy
+ ------
+ 2014-05-29
+ ------
+
+ ~~ 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.
+
+ ~~ NOTE: For help with the syntax of this file, see:
+ ~~ http://maven.apache.org/doxia/references/apt-format.html
+
+
+Doxia Parsing Failure Test
+
+ This is an intentional Doxia parsing failure test, to check how this is reported to end-user.
+
+ {{{wrong link}.
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure-2.apt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt?rev=1598303&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt Thu May 29 14:20:35 2014
@@ -0,0 +1,34 @@
+ ------
+ Doxia Parsing Failure Test
+ ------
+ Hervé Boutemy
+ ------
+ 2014-05-29
+ ------
+
+ ~~ 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.
+
+ ~~ NOTE: For help with the syntax of this file, see:
+ ~~ http://maven.apache.org/doxia/references/apt-format.html
+
+
+Doxia Parsing Failure Test
+
+ This is an intentional Doxia parsing failure test, to check how this is reported to end-user.
+
+ {{{wrong link}.
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/src/site-doxia-parse/apt/failure.apt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/classes/it/Main.class
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/target/classes/it/Main.class?rev=1598303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/classes/it/Main.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/failure-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/target/failure-1.0-SNAPSHOT.jar?rev=1598303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/failure-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties?rev=1598303&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties Thu May 29 14:20:35 2014
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Thu May 29 10:32:07 CEST 2014
+version=1.0-SNAPSHOT
+groupId=org.apache.maven.plugins.site.its
+artifactId=failure

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/failure/target/maven-archiver/pom.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision