You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2011/03/30 01:20:08 UTC
Making a report
I want to create a report which presents some results from a build.
There is no way to recreate the data in the reporting context; the
report must come from the build proper.
Is the thing to do here to make the build proper leave the data behind
in, for example, an XML file in target, and the reporting plugin to
fail if the file is not there?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Making a report
Posted by Benson Margulies <bi...@gmail.com>.
OK, let me try to state this more clearly.
Reporting plugins like checkstyle and pmd and javadoc look for the
output of their corresponding build plugins. If they don't find it,
they fork a build lifecycle to build it. They aren't especially
protected against stale data.
I really can't fork build in this case, so I'll just fail.
I'm not entirely thrilled with all of this, but it seems the best fit
to the design of the site plugin's structure.
On Wed, Mar 30, 2011 at 2:55 AM, Anders Hammar <an...@hammar.net> wrote:
> To me this sounds very similar to what the surefire reporting plugin does.
> Have a look at that code:
> http://maven.apache.org/plugins/maven-surefire-report-plugin/
>
> /Anders
>
> On Wed, Mar 30, 2011 at 01:20, Benson Margulies <bi...@gmail.com>wrote:
>
>> I want to create a report which presents some results from a build.
>> There is no way to recreate the data in the reporting context; the
>> report must come from the build proper.
>>
>> Is the thing to do here to make the build proper leave the data behind
>> in, for example, an XML file in target, and the reporting plugin to
>> fail if the file is not there?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Making a report
Posted by Anders Hammar <an...@hammar.net>.
To me this sounds very similar to what the surefire reporting plugin does.
Have a look at that code:
http://maven.apache.org/plugins/maven-surefire-report-plugin/
/Anders
On Wed, Mar 30, 2011 at 01:20, Benson Margulies <bi...@gmail.com>wrote:
> I want to create a report which presents some results from a build.
> There is no way to recreate the data in the reporting context; the
> report must come from the build proper.
>
> Is the thing to do here to make the build proper leave the data behind
> in, for example, an XML file in target, and the reporting plugin to
> fail if the file is not there?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Making a report
Posted by Barrie Treloar <ba...@gmail.com>.
On Wed, Mar 30, 2011 at 9:50 AM, Benson Margulies <bi...@gmail.com> wrote:
> I want to create a report which presents some results from a build.
> There is no way to recreate the data in the reporting context; the
> report must come from the build proper.
>
> Is the thing to do here to make the build proper leave the data behind
> in, for example, an XML file in target, and the reporting plugin to
> fail if the file is not there?
I'm sorry I don't have specific experience in this area.
Perhaps someone else can provide more guidance.
I'm assuming you've googled
http://www.google.com/search?q=maven+writing+a+report+plugin
>From my quick reading the report plugins are bound to the site phase.
Which means, as you notice, no information on what happened in the build.
I think I agree with your assumption of writing two plugins.
One for the build phase to generate report data, and one report plugin
to pretty up the information.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org