iterative structures *such as <executions>) from <plugin> component configured
in <reportPlugins>
from within maven-site-plugin 3.0-beta-3 causes NPEs (and
ComponentNotFoundException)
<executions> tag does not work:
<plugin> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-3</version><configuration>
<reportPlugins><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<executions>...anything within the executions tag causes either
ComponentNotFoundException and or NPEs...</plugin>
</reportPlugins>
</plugin>
works (when reportPlugins plugin does not contain <executions> iteration tag)
<plugin><groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-3</version><configuration>
<reportPlugins> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<forkMode>never</forkMode>
<testSourceDirectory>C:maven-plugin/maven-android-plugin/trunk/src/test</testSourceDirectory>
<classesDirectory>C:/maven-plugin/maven-android-plugin/trunk/target/test-classes</classesDirectory>
<argLine>-Xmx3192m -XX:MaxPermSize=3192m</argLine>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration> </plugin>
</reportPlugins>
</plugin>
suggestions:
1)if this is a bug lets update the master pom.xml in maven-android-plugin/trunk
to back out <executions> tag2)if this a bug for maven-site-plugin 3.0-beta-3..i
will file bug in Jira
Martin
______________________________________________
> From: [email protected]
> To: [email protected]; [email protected]
> Subject: inconsistencies found with maven-site-plugin
> Date: Mon, 7 Jan 2013 22:07:49 -0500
>
>
> Manfred from the trunk\pom.xml the maven-android-plugin pom.xml was abending
> on executions when maven-surefire <plugin>
> was being referenced from within maven-site-plugin here is the applicable
> portion of pom.xml <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <version>3.0-beta-3</version>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>jar</goal>
> </goals>
> <configuration>
> <finalName>maven-android-plugin-3.5.1.jar</finalName>
> <reportPlugins>
> <plugin>
> <artifactId>maven-plugin-plugin</artifactId>
>
> <version>${maven-plugin-plugin.version}</version>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jxr-plugin</artifactId>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <version>2.9.1</version>
> </plugin>
> <!--
> <plugin>
> <groupId>org.codehaus.plexus</groupId>
> <artifactId>plexus-container-default</artifactId>
> <version>1.5.5</version>
> </plugin>
> -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-pmd-plugin</artifactId>
> <configuration>
> <linkXRef>true</linkXRef>
>
> <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
> <minimumTokens>100</minimumTokens>
> <targetJdk>1.6</targetJdk>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-project-info-reports-plugin</artifactId>
> <configuration>
>
> <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
>
> <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <configuration>
> <quiet>true</quiet>
> </configuration>
> </plugin>
>
> <!--
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.9</version>
> <executions>
> <execution>
> <id>execution1</id>
> <phase>package</phase>
> <configuration>
> <forkMode>never</forkMode>
>
> <testSourceDirectory>C:maven-plugin/maven-android-plugin/trunk/src/test/java/com/jayway/maven/plugins/android/common</testSourceDirectory>
>
> <classesDirectory>C:/maven-plugin/maven-android-plugin/trunk/target/test-classes/com/jayway/maven/plugins/android/common</classesDirectory>
> <argLine>-Xmx3192m
> -XX:MaxPermSize=3192m</argLine>
> <includes>
> <include>**/*Test.java</include>
> </includes>
> </configuration>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>surefire</artifactId>
> <version>1.5.3</version>
> </dependency>
> </dependencies>
> </plugin>
> -->
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-surefire-report-plugin</artifactId>
> <version>2.12.4</version>
> <configuration>
> <forkMode>never</forkMode>
>
> <testSourceDirectory>C:maven-plugin/maven-android-plugin/trunk/src/test</testSourceDirectory>
>
> <classesDirectory>C:/maven-plugin/maven-android-plugin/trunk/target/test-classes</classesDirectory>
> <argLine>-Xmx3192m
> -XX:MaxPermSize=3192m</argLine>
> <includes>
> <include>**/*Test.java</include>
> </includes>
> </configuration>
> <!--
> <executions>
> <execution>
> <id>execution1</id>
> <phase>test</phase>
> <configuration>
> <forkMode>never</forkMode>
>
> <testSourceDirectory>C:maven-plugin/maven-android-plugin/trunk/src/test</testSourceDirectory>
>
> <classesDirectory>C:/maven-plugin/maven-android-plugin/trunk/target/test-classes</classesDirectory>
> <argLine>-Xmx3192m
> -XX:MaxPermSize=3192m</argLine>
> <includes>
> <include>**/*Test.java</include>
> </includes>
> </configuration>
> </execution>
> </executions>
> -->
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-surefire-report-plugin</artifactId>
> <version>2.12.4</version>
> <configuration>
> <forkMode>never</forkMode>
>
> <classesDirectory>C:/maven-plugin/maven-android-plugin/trunk/target/classes_org</classesDirectory>
> <argLine>-Xmx3192m
> -XX:MaxPermSize=3192m</argLine>
> <includes>
> <include>%regex[[org]/**.*Test.*]</include>
> </includes>
> </configuration>
> <!--
> <executions>
> <execution>
> <id>execution1</id>
> <phase>test</phase>
> <configuration>
> <forkMode>never</forkMode>
>
> <classesDirectory>C:/maven-plugin/maven-android-plugin/trunk/target/classes_org</classesDirectory>
> <argLine>-Xmx3192m
> -XX:MaxPermSize=3192m</argLine>
> <includes>
> <include>%regex[[org]/**.*Test.*]</include>
> </includes>
> </configuration>
> </execution>
> </executions>
> -->
> </plugin>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>cobertura-maven-plugin</artifactId>
> <configuration>
> <formats>
> <format>xml</format>
> <format>html</format>
> </formats>
> </configuration>
> <!--
> <dependencies>
> <dependency>
> <groupId>org.codehaus.plexus</groupId>
> <artifactId>plexus-container-default</artifactId>
> <version>1.5.5</version>
> </dependency>
> </dependencies>
> -->
> </plugin>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>findbugs-maven-plugin</artifactId>
> <configuration>
>
> <excludeFilterFile>src/conf/findbugs-exclude.xml</excludeFilterFile>
> <xmlOutput>true</xmlOutput>
> <threshold>Low</threshold>
> <effort>Max</effort>
> <debug>false</debug>
> <relaxed>false</relaxed>
> </configuration>
> <!--
> <dependencies>
> <dependency>
> <groupId>org.codehaus.plexus</groupId>
> <artifactId>plexus-container-default</artifactId>
> <version>1.5.5</version>
> </dependency>
> </dependencies>
> -->
> </plugin>
> </reportPlugins>
> </configuration>
> </execution>
> </executions>
> </plugin>
> thus removing the executions allowed the single-element treatment of each
> plugin element to process successfully
> at present maven-site-plugin does not accomodate iterative structures is this
> a bug?
> Mit freundlichen Grüßen Martin ______________________________________________
> Verzicht und Vertraulichkeitanmerkung
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich
> dem Austausch von Informationen und entfaltet keine rechtliche
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
> wir keine Haftung fuer den Inhalt uebernehmen.
>