[ http://jira.codehaus.org/browse/MNG-1298?page=all ]
Brett Porter closed MNG-1298:
-----------------------------
Assign To: Brett Porter
Resolution: Won't Fix
requiresReports doesn't do what you need here.
Please try @aggregator on the report that is configured in the root project -
this should ensure that it is not run on the subprojects, but that you have
access to the list of projects via ${reactorProjects}. For each of the
projects, you can get the list of reports (which should have been executed by
now), and process them accordingly. I don't know how you intend to process
them, so there may be more information required.
> Need a way to set requiresReports to true by attributing my Mojo.
> -----------------------------------------------------------------
>
> Key: MNG-1298
> URL: http://jira.codehaus.org/browse/MNG-1298
> Project: Maven 2
> Type: Improvement
> Components: maven-plugin-api, maven-plugins, maven-plugin-tools,
> maven-plugin-descriptor, maven-plugin-plugin
> Versions: 2.0
> Reporter: Dave Sag
> Assignee: Brett Porter
>
>
> I am writing a plugin that aggregates the reports from other plugins. It
> therefore makes sense that the requresReports tag be set to true, as this
> plugin does require that the other reports have been generated.
> in dicussion on the [EMAIL PROTECTED] list Brett Porter suggested:
> >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.
> but that's a parameter setting, and does not seem to be bound to the mojo
> wide requiresReports tag.
> I suggested:
> > 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
> > myplugin 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
> >
> > why not just let me set @requiresReports in the very top of my mojo where
> > the @goal, @phase and @requiresDependencyResolution tags live.
> It's quite possible I have failed to properly understand the usage of the
> requiresReports tag.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]