What I need is acccess to the various checkstyle (etc) reports in an xml format.
what you describe below doesn't seem appropriate to me. My parameters already have various expressions and default values but i do need to ensure that the checkstyle (etc) plugins have already been run, before my plugin is run.
requiresReports is a goal-wide setting, not specific to a parameter, so i guess what i am assking is
1) what is that tag actually for
2) how to set it to true
if you are saying that to set that tag to true i need to create a dummy parameter with @parameter _expression_="${reports}" set then i really feel that's a very stupid hack.
why not just let me set @requiresReports in the very top of my mojo where the @goal, @phase and @requiresDependencyResolution tags live.
Kind regards,
Dave Sag
Brett Porter <[EMAIL PROTECTED]> wrote on 18/10/2005 04:58:26 AM:
> You need to use the reports, so declare:
>
> @parameter _expression_="${reports}"
>
> That will trigger it. But are you sure you relly need access to the reports?
> That's generally only for the site plugin.
>
> The aggregator tag causes the mojo not to be run for subprojects, instead it
> is run at the root and you have access to ${reactorProjects}
>
> On 10/17/05, David Sag <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi all,
> >
> > I am writing an M2 plugin for QALab. QALab aggregates the reports from
> > other plugins such as checkstyle etc.
> >
> > In my plugin.xml file there is a tag
> > <requiresReports>false</requiresReports> and so I guessed that setting
> >
> > @requiresReports
> >
> > at the to of my Mojo would change this flat to true when i regenerate the
> > plugin.xml file. but it does not.
> >
> > also while I am at it, I am curious as to the role of the aggregator tag
> >
> > Kind regards,
> > Dave Sag
> >
> >
> >
> >
> >
