Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-679

<executions> tag within <reportPlugins> in maven-site-plugin causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.0-beta-3
    • None
    • Maven 3
    • None
    • JDK 1.6 mvn 3.0.2

    Description

      <executions> tag in <reportPlugins> causes NPE

      <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...<executions>
         </plugin>
        </reportPlugins>
       <configuration>
      </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>
       </configuration>
      </plugin>
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            mgainty Martin Gainty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: