You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brian Burridge <br...@burridge.net> on 2003/11/14 16:22:10 UTC

Dashboard produces no results / Checkstyle question

I am new to Maven (previously used Ant), and am loving it.

I have customized many of the reports, and added content to the site,
and everything is coming along well. But I have two questions that I
have not been able to resolve on my own.

1) When the Dashboard plugin runs I get an empty dashboard-data.xml and
no data on the report. (the xml contains just the dashboard open and
closing tag.) All the dashboard settings have been left at their
defaults.

2) Does anyone have a suggestion as to how to fix classes quickly when
checkstyle reports errors? We have 12,500 errors :), not all of which
need to be fixed (we'll make some changes to the checkstyle format), but
many do. I could use jalopy but then I have to replicate all the rules
from checkstyle to jalopy. Any other suggestions?

Brian N. Burridge
IBM Global Services


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dashboard produces no results / Checkstyle question

Posted by Brian Ewins <Br...@btinternet.com>.

Brian Burridge wrote:
> 
> 2) Does anyone have a suggestion as to how to fix classes quickly when
> checkstyle reports errors? We have 12,500 errors :), not all of which
> need to be fixed (we'll make some changes to the checkstyle format), but
> many do. I could use jalopy but then I have to replicate all the rules
> from checkstyle to jalopy. Any other suggestions?
> 

http://wiki.codehaus.org/maven/JalopyCheckstyleHarmony

I wrote that ages ago, it needs to be brought up-to-date with the new 
checkstyle format. The gist is, I found it so hard to get jalopy and 
checkstyle rules to match up, I just turned off everything I could fix 
with jalopy, or with my IDE's code formatter.

Now they both have an xml config format it would be extremely useful if 
someone wrote an xsl conversion between them; or at least if the jalopy 
plugin was changed so it would always try to use a config file that 
matched the coding convention (eg. both checkstyle & jalopy use a file 
called "avalon.xml" or "sun.xml" or whatever, based on the convention 
you choose)

-Baz



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Dashboard produces no results / Checkstyle question

Posted by Vincent Massol <vm...@pivolis.com>.
Ok, that's normal then. The dashboard plugin makes sense only when you
have several subprojects. By default it does not include the main
project in its dashboard as when a master project/multiple subproject
scenario, the master project does not usually hold any code and is
simply a wrapper project. If you wish to run it on your main master
project, try setting:

maven.dashboard.excludes=**/target/**/project.xml

The default value is:

maven.dashboard.excludes=**/target/**/project.xml,project.xml

as show by
http://maven.apache.org/reference/plugins/dashboard/properties.html

BTW, I've just noticed that I should removed project.xml from the
default exclude list as it's already excluded in the default includes
list:

maven.dashboard.includes=*/project.xml

and it makes more sense for the user (you) to simply add it, as in:

maven.dashboard.includes=*/project.xml,project.xml

Note: I haven't tested this scenario of including the master project and
it might not work!

Thanks
-Vincent

> -----Original Message-----
> From: Brian Burridge [mailto:maillist@burridge.net]
> Sent: 14 November 2003 19:53
> To: Maven Users List
> Subject: RE: Dashboard produces no results / Checkstyle question
> 
> I am only using the dashboard with one project (no subprojects). There
> is no dashboard-single.xml anywhere, just the dashboard-data.xml. I do
> have the checkstyle-raw-report.xml though. I'm not using clover.
> 
> Brian N. Burridge
> IBM Global Services
> 
> 
> On Fri, 2003-11-14 at 11:00, Vincent Massol wrote:
> > Hi Brian,
> >
> > > -----Original Message-----
> > > From: Brian Burridge [mailto:brian@burridge.net]
> > > Sent: 14 November 2003 16:22
> > > To: users@maven.apache.org
> > > Subject: Dashboard produces no results / Checkstyle question
> > >
> > > I am new to Maven (previously used Ant), and am loving it.
> > >
> > > I have customized many of the reports, and added content to the
site,
> > > and everything is coming along well. But I have two questions that
I
> > > have not been able to resolve on my own.
> > >
> > > 1) When the Dashboard plugin runs I get an empty
dashboard-data.xml
> > and
> > > no data on the report. (the xml contains just the dashboard open
and
> > > closing tag.) All the dashboard settings have been left at their
> > > defaults.
> >
> > The dashboard is quite new (I've just committed it last week) so
there
> > may be some rough edges... :-)
> >
> > The dashboard plugins calls each project and that generates a
> > dashboard-single.xml file in each of your project. Could you check
that
> > these files exists and if they have any content?
> >
> > The default dashboard aggregators are checkstyle and clover ones. So
the
> > first thing you need to ensure is that running "maven checkstyle" on
> > your individual projects generates a checkstyle-raw-report.xml file.
For
> > clover, you *must* set the maven.clover.report.xml=true property, as
> > explained on:
> >
> > http://maven.apache.org/reference/plugins/dashboard/aggregators.html
> >
> > [snip]
> >
> > Thanks
> > -Vincent
> >
> >
> >
---------------------------------------------------------------------
> > 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



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Dashboard produces no results / Checkstyle question

Posted by Brian Burridge <ma...@burridge.net>.
I am only using the dashboard with one project (no subprojects). There
is no dashboard-single.xml anywhere, just the dashboard-data.xml. I do
have the checkstyle-raw-report.xml though. I'm not using clover.

Brian N. Burridge
IBM Global Services


On Fri, 2003-11-14 at 11:00, Vincent Massol wrote:
> Hi Brian,
> 
> > -----Original Message-----
> > From: Brian Burridge [mailto:brian@burridge.net]
> > Sent: 14 November 2003 16:22
> > To: users@maven.apache.org
> > Subject: Dashboard produces no results / Checkstyle question
> > 
> > I am new to Maven (previously used Ant), and am loving it.
> > 
> > I have customized many of the reports, and added content to the site,
> > and everything is coming along well. But I have two questions that I
> > have not been able to resolve on my own.
> > 
> > 1) When the Dashboard plugin runs I get an empty dashboard-data.xml
> and
> > no data on the report. (the xml contains just the dashboard open and
> > closing tag.) All the dashboard settings have been left at their
> > defaults.
> 
> The dashboard is quite new (I've just committed it last week) so there
> may be some rough edges... :-)
> 
> The dashboard plugins calls each project and that generates a
> dashboard-single.xml file in each of your project. Could you check that
> these files exists and if they have any content?
> 
> The default dashboard aggregators are checkstyle and clover ones. So the
> first thing you need to ensure is that running "maven checkstyle" on
> your individual projects generates a checkstyle-raw-report.xml file. For
> clover, you *must* set the maven.clover.report.xml=true property, as
> explained on:
> 
> http://maven.apache.org/reference/plugins/dashboard/aggregators.html
> 
> [snip]
> 
> Thanks
> -Vincent
> 
> 
> ---------------------------------------------------------------------
> 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: Dashboard produces no results / Checkstyle question

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Brian,

> -----Original Message-----
> From: Brian Burridge [mailto:brian@burridge.net]
> Sent: 14 November 2003 16:22
> To: users@maven.apache.org
> Subject: Dashboard produces no results / Checkstyle question
> 
> I am new to Maven (previously used Ant), and am loving it.
> 
> I have customized many of the reports, and added content to the site,
> and everything is coming along well. But I have two questions that I
> have not been able to resolve on my own.
> 
> 1) When the Dashboard plugin runs I get an empty dashboard-data.xml
and
> no data on the report. (the xml contains just the dashboard open and
> closing tag.) All the dashboard settings have been left at their
> defaults.

The dashboard is quite new (I've just committed it last week) so there
may be some rough edges... :-)

The dashboard plugins calls each project and that generates a
dashboard-single.xml file in each of your project. Could you check that
these files exists and if they have any content?

The default dashboard aggregators are checkstyle and clover ones. So the
first thing you need to ensure is that running "maven checkstyle" on
your individual projects generates a checkstyle-raw-report.xml file. For
clover, you *must* set the maven.clover.report.xml=true property, as
explained on:

http://maven.apache.org/reference/plugins/dashboard/aggregators.html

[snip]

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org