If you do
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.8</version>
      </plugin>
      ...
    </plugins>
  </reporting>

Maven will execute all mojos of type Report

If you want only the aggregate one
  <reporting>
    <plugins>
.....
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <version>2.8</version>
            <inherited>false</inherited>
            <reportSets>
              <reportSet>
                <reports>
                  <report>checkstyle-aggregate</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
      ...
    </plugins>
  </reporting>

HTH

2011/11/29 Mirko Friedenhagen <mfriedenha...@gmail.com>:
> I did not see immediately a solution how to do this. Would you shed
> the light :-)?
> Regards Mirko
>
> On Tue, Nov 29, 2011 at 09:38, Anders Hammar <and...@hammar.net> wrote:
>> I believe that might have been a change in v2.8. It can be "fixed" by
>> specifying that only the 'checkstyle' report should be used.
>>
>> /Anders
>>
>> On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen
>> <mfriedenha...@gmail.com> wrote:
>>> Hello,
>>>
>>> I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find
>>> two reports for checkstyle:
>>>
>>> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues)
>>> and
>>> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html
>>> (423 issues)
>>>
>>> The latter one is (almost) duplicating the number of the checkstyle
>>> issues in the report.
>>>
>>> The POM might be found at
>>> https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml
>>>
>>> Any hints what is going wrong?
>>>
>>> Regards Mirko
>>> --
>>> http://illegalstateexception.blogspot.com/
>>> https://github.com/mfriedenhagen/
>>> https://bitbucket.org/mfriedenhagen/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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

Reply via email to