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

MavenReport#setReportOutputDirectory(File) is called too late

    XMLWordPrintableJSON

Details

    Description

      Consider you report performs some actions based on the updated value of the report output directory in #canGenereateReport(). E.g., Maven PMD Plugin does first write status files to that directory and to determine the location of XRef files. Since #canGenereateReport() happens before ##setReportOutputDirectory(File) is invoked the calculation is partially wrong. This can happen when the site is rendered for a non-default locale or after MSHARED-1327 where there is now a clean distinction between standalone execution and site execution, especially for external reports which properly needs the report output directory set. Reports which use a preconfigured sink aren't affected.

      All setters on the MavenReport need to be invoked first before any (internal) execution can happen. Prior to that all reports need to be evaluated on a per-locale basis.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: