hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Checkstyle settings don't appear to work
Date Fri, 26 Jul 2013 10:41:53 GMT
On Fri, 2013-07-26 at 10:43 +0100, sebb wrote:
> On 26 July 2013 00:18, sebb <sebbaz@gmail.com> wrote:
> > It does not look like the checkstyle settings in the parent pom are working.
> >
> > As far as I can tell, checkstyle defaults to using the default configuration.
> >
> > I think that is because the checkstyle config is under
> > <build><pluginManagement> rather than <reporting>, where it belongs
> > according to
> >
> > http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html
> >
> > It may be necessary to duplicate the config under <build> for
> > command-line use with Maven 3, but it definitely needs to be under
> > <reporting> for both M2 and M3.
> 
> I've since discovered that checkstyle does run as part of the validate phase.
> However, this only works on trunk.
> The 4.2.x branch reports:
> 
> $ mvn validate
> ...
> No goals needed for project - skipping
> 

Style checks are enforced in trunk (4.3) only. 4.2 is about to go
inactive.

Oleg 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message