The "perfect" reporting tool?

The "perfect" reporting tool?

Hi

I am in search for a nice way to compile all reports for a Maven build.
I have for instance JUnit results, findbugs results and code coverage
results (using Emma).

The maven site plugin does not really aggregate info so that I can get
the total number of findbugs bugs so I started to look at the dashboard
plugin from codehaus, but that plugin does not seem to get developed any
more. And there is not way to support Emma in it either.

Sonar seems to be a good initiative but that seems to require a running
server which I can not fit into our build environment.
I am locked downed to just creating a static html site that some other
will publish for me.

Re: The "perfect" reporting tool?

Hi,

> I am in search for a nice way to compile all reports for a Maven build.
> I have for instance JUnit results, findbugs results and code coverage
> results (using Emma).
>
> The maven site plugin does not really aggregate info so that I can get
> the total number of findbugs bugs so I started to look at the dashboard
> plugin from codehaus, but that plugin does not seem to get developed any
> more. And there is not way to support Emma in it either.

What does your pom look like? And what version of Maven, site/findbugs/...
plugins do you use?

On my system I'm using a corporate parent pom containing a couple of
profiles that, when activated, add Findbugs, Checkstyle and/or PMD reports
to the generated website. Works pretty fine.

Re: The "perfect" reporting tool?

Hi

I have as you a top "corporate" pom which defines all versions on
the plugings.
Maven itsels is at 3.0.2, findbugs is on latest 2.4 , emma is the
latest 1.0-alpha-3, the site plugin is actually only 3.0-beta-3.
Dashboard is on 1.0.0-beta-1 which seems to be the latest.

But really I like to have an "aggregated" view of how many findbugs
bugs we have instead of be forced to drill down on each subproject
to see the status.

right now I am running "mvn install site dashboard:dashboard
site:stage-deploy"
but not all reports gets included in the "site". For instance the
findbugs reports.

But if a run "mvn install site dashboard:dashboard" and have the
dashboard to a separate folder then it will show an aggregate view
of findbugs bugs...

Maybe the issue is simply the old site plugin...

But, Thorsten, are you able to have an aggregate code coverage
report using for instance Emma or JaCoCo using the site plugin?
(Emma and JaCoCo have nice Eclipse plugins and that's why we do not
use Cobertura or Clover)

I am in search for a nice way to compile all reports for a Maven build.
I have for instance JUnit results, findbugs results and code coverage
results (using Emma).
The maven site plugin does not really aggregate info so that I can get
the total number of findbugs bugs so I started to look at the dashboard
plugin from codehaus, but that plugin does not seem to get developed any
more. And there is not way to support Emma in it either.

What does your pom look like? And what version of Maven, site/findbugs/...
plugins do you use?
On my system I'm using a corporate parent pom containing a couple of
profiles that, when activated, add Findbugs, Checkstyle and/or PMD reports
to the generated website. Works pretty fine.
Regards
Thorsten

Re: The "perfect" reporting tool?

> Hi
>
> I am in search for a nice way to compile all reports for a Maven build.
> I have for instance JUnit results, findbugs results and code coverage
> results (using Emma).
>
> The maven site plugin does not really aggregate info so that I can get
> the total number of findbugs bugs so I started to look at the dashboard
> plugin from codehaus, but that plugin does not seem to get developed any
> more. And there is not way to support Emma in it either.
>
> Sonar seems to be a good initiative but that seems to require a running
> server which I can not fit into our build environment.
> I am locked downed to just creating a static html site that some other
> will publish for me.
>
> Any tips in this area is highly welcomed!
>
> Thanks
> Lucas
>

Re: The "perfect" reporting tool?

> Hi
>
> I have as you a top "corporate" pom which defines all versions on the
> plugings.
> Maven itsels is at 3.0.2, findbugs is on latest 2.4 , emma is the
> latest 1.0-alpha-3, the site plugin is actually only 3.0-beta-3.
> Dashboard is on 1.0.0-beta-1 which seems to be the latest.
>
> But really I like to have an "aggregated" view of how many findbugs bugs
> we have instead of be forced to drill down on each subproject to see the
> status.
>
> right now I am running "mvn install site dashboard:dashboard
> site:stage-deploy"
> but not all reports gets included in the "site". For instance the
> findbugs reports.
>
> But if a run "mvn install site dashboard:dashboard" and have the
> dashboard to a separate folder then it will show an aggregate view of
> findbugs bugs...
>
> Maybe the issue is simply the old site plugin...
>
> But, Thorsten, are you able to have an aggregate code coverage report
> using for instance Emma or JaCoCo using the site plugin?
> (Emma and JaCoCo have nice Eclipse plugins and that's why we do not use
> Cobertura or Clover)

Whether a Maven report can be aggregated or not is not up to the Site
Plugin. Instead each plugin has to implement this for themselves.
Historically this has not been done consistently, but we have started to
straighten this up.

Go to the page for each Maven plugin that you use. Look for either a
special aggregate parameter (old way) or a special aggregate goal (new way).

Re: The "perfect" reporting tool?

As you already mentioned: although Sonar gives you the best reports, it
requires a running Sonar application.
I once needed the static pages and the dashboard-maven-plugin seemed to be
the best solution.
I wasn't happy with the implementation and the number of open issues.
A long time ago I started rewriting the plugin[1]. I came pretty far. It
became pluggable (you can decide which reports you want, add your own
reports), but I had some generics-issues I wasn't able to solve.
This plugin is still on my todo list, but there are much more important
things I like to pick up first.
I'd be glad if you want to take the challenge to help on this plugin.

> Hi
>
> I am in search for a nice way to compile all reports for a Maven build.
> I have for instance JUnit results, findbugs results and code coverage
> results (using Emma).
>
> The maven site plugin does not really aggregate info so that I can get
> the total number of findbugs bugs so I started to look at the dashboard
> plugin from codehaus, but that plugin does not seem to get developed any
> more. And there is not way to support Emma in it either.
>
> Sonar seems to be a good initiative but that seems to require a running
> server which I can not fit into our build environment.
> I am locked downed to just creating a static html site that some other
> will publish for me.
>
> Any tips in this area is highly welcomed!
>
> Thanks
> Lucas