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-tools, maven-plugins, maven-plugin-plugin, maven-plugin-descriptor, maven-plugin-api Versions: 2.0 Reporter: Dave Sag 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]