You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Brett Porter <br...@apache.org> on 2006/05/15 01:23:54 UTC

Re: multi-page reports

Hey Kenney,

Did you make any progress on this.

A couple of things about reports definitely need to be sorted out in 2.1 
- this is one of them.

- Brett

Kenney Westerhof wrote:
> Hi,
> 
> I'm trying to implement a multi-page report.
> 
> The problem is that currently the ReportDocumentRenderer from
> maven-site-plugin creates the SiteRendererSink and calls
> report.generate(sink,locale).
> 
> There's no way to create more SiteRendererSinks within the report,
> because those sinks are from a different classloader. You can't use
> the SiteRenderer component to create sinks because of the same reason.
> 
> The only way I see to support multiple pages for reports without running
> into classloading issues is to give a SinkFactory to the MavenReport
> instance - a SinkFactory from the maven-reporting-api, if possible,
> otherwise from the Doxia api.
> I believe that Report plugins should only implement/work with a Maven
> reporting api, not with underlying libraries, if possible.
> A 'main' sink for the report page could (still) be supplied.
> 
> Thoughts?
> 
> I'm currently working on a solution in trunk..
> 
> -- Kenney
> 
> ---------- Forwarded message ----------
> Date: Sat, 15 Apr 2006 17:35:58 +0200 (CEST)
> From: Kenney Westerhof <ke...@apache.org>
> To: dev@maven.apache.org
> Subject: multi-page reports
> 
> 
> Hi,
> 
> I'm trying to create a multi-page report. I use the main sink to
> render an overview page, and use the SiteRenderer to create a sink
> for each page.
> 
> Unfortunately no files are created. I looked at the doxia api
> and it has some methods for rendering pages using velocity merging.
> Unfortunately I don't have a SiteRenderingContext object handy,
> so I can't call the public (or private) methods.
> 
> In maven-reporting-impl I saw an AbstractMavenMultiPageReport class
> but it is not used anywhere.
> 
> Anybody got an idea on how to render multiple pages in a report?
> 
> I cannot create a separate mojo for the pages - it renders
> a page for each file in a given set of source files.
> 
> When this issue is resolved I'll post a request for adding a new
> plugin to the mojo project.
> 
> -- Kenney
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org