You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mirko Friedenhagen <mf...@gmail.com> on 2011/11/28 20:50:10 UTC

checkstyle-plugin 2.8 aggregated duplicates number of issues.

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

Posted by Mirko Friedenhagen <mf...@gmail.com>.
Thanks Olivier, I now use `checkstyle` as reportSet in my non-module
projects. I created a bug report at
http://jira.codehaus.org/browse/MCHECKSTYLE-167 as I think it is
unexpected, that I have to configure a reportSet at all for a
non-module project and the number of reported issues in the aggregate
report is wrong as well.

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/



On Tue, Nov 29, 2011 at 21:11, Olivier Lamy <ol...@apache.org> wrote:
> 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 <mf...@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 <an...@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
>>> <mf...@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-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
>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> 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: checkstyle-plugin 2.8 aggregated duplicates number of issues.

Posted by Olivier Lamy <ol...@apache.org>.
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 <mf...@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 <an...@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
>> <mf...@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-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
>



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

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


Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

Posted by Mirko Friedenhagen <mf...@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 <an...@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
> <mf...@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-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: checkstyle-plugin 2.8 aggregated duplicates number of issues.

Posted by Anders Hammar <an...@hammar.net>.
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
<mf...@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-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