Maven Shared Components
  1. Maven Shared Components
  2. MSHARED-120

No single report generated with latest maven-reporting-impl

    Details

    • Flags:
      Patch

      Description

      Recently, I fixed several report plugins (changelog, changes etc.) to use Doxia 1.0 and latest maven-reporting-impl.
      The main goal was to make reporting plugins available in PDF (see MPDF-26 and doc [1])

      I notified that running a single report doesn't work but works when coupling with maven-site-plugin 2.0.x.

      For instance, run:

      mvn org.apache.maven.plugins:maven-changelog-plugin:2.2-SNAPSHOT:changelog
      

      In Doxia 1.0, the SiteRenderSink [2] uses a StringWriter by default to use getBody() in the renderer [3]. So running a single report doesn't write a file with reporting-impl:2.0.4.2

      In MPIR 2.1.2, we overrided the mojo.execute() to handle a default renderer [4] so we are able to run a single report. I propose to move this logic in AbstractMavenReport.

      [1] http://maven.apache.org/plugins/maven-pdf-plugin-1.1-SNAPSHOT/examples/configuring-reports.html#Maven_Reporting_Plugins_Issues
      [2] http://maven.apache.org/doxia/doxia-sitetools-1.0.x/xref/org/apache/maven/doxia/siterenderer/sink/SiteRendererSink.html#47
      [3] http://maven.apache.org/doxia/doxia-sitetools-1.0.x/xref/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.html#433
      [4] http://maven.apache.org/plugins/maven-project-info-reports-plugin/xref/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.html#137

      1. MSHARED-120.patch
        5 kB
        Siveton Vincent
      2. reporting.patch
        9 kB
        Siveton Vincent

        Activity

        Siveton Vincent created issue -
        Siveton Vincent made changes -
        Field Original Value New Value
        Attachment MSHARED-120.patch [ 43843 ]
        Siveton Vincent made changes -
        Summary Unable to generate single report with latest maven-reporting-impl No single report generated with latest maven-reporting-impl
        Siveton Vincent made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s maven-reporting-impl 2.0.4.3 [ 15947 ]
        Assignee Vincent Siveton [ siveton ]
        Status Open [ 1 ] Closed [ 6 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Status Closed [ 6 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Hervé Boutemy made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Dennis Lundberg made changes -
        Fix Version/s maven-reporting-impl 2.1 [ 15488 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:14:21 UTC 2015 [ 1428239661755 ]
        Mark Thomas made changes -
        Workflow jira [ 12726120 ] Default workflow, editable Closed status [ 12764459 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:15:59 UTC 2015 [ 1428282959282 ]
        Mark Thomas made changes -
        Workflow jira [ 12963772 ] Default workflow, editable Closed status [ 12999711 ]

          People

          • Assignee:
            Siveton Vincent
            Reporter:
            Siveton Vincent
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development