> -----Original Message----- > From: Brett Porter [mailto:[EMAIL PROTECTED] > Sent: 10 November 2003 22:05 > To: 'Maven Developers List' > Subject: RE: [changes] New goal for release report! > > This isn't the first attempt actually - from what I understand > multiproject's dependency convergence report is an aggregator. > > The way I think it should work is: > 1) all reports are per project (including depencency convergence!) > 2) multiproject provides a generic aggregation utility to pull down > multiple > result files. > 3) reports are then run over the aggregated files as they would for any > other project, as they should be in the same format.
This is what I've done in both the dashboard and the multichanges plugins. They first create a single report and then aggregate them. > > To implement this, I guess each "aggreator compliant" plugin needs to > provide a way to merge two output files - so you instruct junitreport to > merge target/TESTS-AllSuites.xml, subproject1/target/TESTS-AllSuites.xml, > etc, into one target/TESTS-AllSuites.xml, which is then transformed as > usual > by the report plugin. Checkstyle, dashboard, changes, could all do the > same. > yep, although I don't think you could provide a generic solution for this. A JSL works though as it can iterate over project using ${projectReactor}. A way this could be done is by registering a jsl with a multireport plugin (I think multiproject should be renamed multisite and the convergence report extracted from it). > There would need to be a way to exclude certain reports from being > aggregated Simply don't register report aggregates that you don't want. > - eg checkstyle might be far too large in some cases to want to > aggregate, and "changelog" and the other CVS reports should only be > aggregated when the subprojects are not underneath the same CVS module (if > they are, the base directory one is effectively already aggregated). > > What do you guys think? I think this is a powerful feature and something > I've thought about before - probably best to have a decent go at solving > the > problem than introducing something different for each report. > I kinda like the multireport registrating stuff. There could be a multireport:report goal and a tag to register aggregators: <multiproject:register name="..." aggregatorJsl="..." dataSource="name and location of data file to aggregate" runGoals="true|false" ... /> Basically, what I am doing is extracting the algorithm I've used in the dashboard and multichanges plugins. What do you think? If we agree I'm volunteering to create such a generic multireport plugin. Thanks -Vincent > Cheers, > Brett > > > -----Original Message----- > > From: Jason van Zyl [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, 11 November 2003 7:46 AM > > To: Maven Developers List > > Subject: RE: [changes] New goal for release report! > > > > > > You're making the first attempt so what do you think would be > > easier for the user and for maintenance down the road? > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]