Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-712

[REGRESSION] <reportsDirectories> ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8
    • 2.8.1
    • None
    • Vista SP2 x64, JDK 6u24, Maven 3.0.3, site-plugin 3.0-beta-3

    Description

      Running mvn site with surefire-reports-plugin enabled and configured generates an empty surefire-report.html.

      Using the (new and recommended) <reportsDirectories> works with version 2.7.1, but is broken with 2.7.2 and 2.8!
      The (now deprecated) <reportsDirectory> works with all versions.

      site-plugin 3 configuration:

        ...
        <reportPlugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-report-plugin</artifactId>
      
          <configuration>
            ...
            <!-- WORKS ALWAYS -->
            <!--reportsDirectory>${test.reportsDirectory}</reportsDirectory-->
      
            <!-- WORKS with 2.7.1, but NOT with 2.7.2 / 2.8 -->
            <reportsDirectories>
              <reportsDirectory>${test.reportsDirectory}</reportsDirectory>
            </reportsDirectories>
          </configuration>
        ...
      

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              fuege André Fügenschuh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: