You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "patrick OShea (JIRA)" <ji...@codehaus.org> on 2005/12/12 09:47:46 UTC
[jira] Created: (MNG-1812) PMD should generate results in formats
other than html
PMD should generate results in formats other than html
------------------------------------------------------
Key: MNG-1812
URL: http://jira.codehaus.org/browse/MNG-1812
Project: Maven 2
Type: Improvement
Components: maven-pmd-plugin
Versions: 2.0
Reporter: patrick OShea
Currently the maven2 pmd plugin only creates html output.
It should be enhanced to allow the output of pmd data in other formats.
Also It should be possible to run PMD on a projects without adding it as a report.
Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1812) PMD should generate results in formats
other than html
Posted by "patrick OShea (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1812?page=all ]
patrick OShea updated MNG-1812:
-------------------------------
Attachment: PmdPlugin.java
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MNG-1812
> URL: http://jira.codehaus.org/browse/MNG-1812
> Project: Maven 2
> Type: Improvement
> Components: maven-pmd-plugin
> Versions: 2.0
> Reporter: patrick OShea
> Attachments: PmdPlugin.java
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPMD-8) PMD should generate results in formats
other than html
Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPMD-8?page=comments#action_55253 ]
mike perham commented on MPMD-8:
--------------------------------
You should be able to run the pmd plugin on a project just by running 'mvn pmd:pmd'. The output will be emitted to your site report directory (e.g. target/site).
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: mike perham
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPMD-8) PMD should generate results in formats
other than html
Posted by "Dave Sag (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPMD-8?page=comments#action_59665 ]
Dave Sag commented on MPMD-8:
-----------------------------
where are we with this? i am currently using the patched version that patrick o'shea wrote last year to generate my xml as there doesn't seem to have been any official action on this plugin. see also http://jira.codehaus.org/browse/MNGBOOK-82
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: Mike Perham
> Fix For: 2.0-beta-1
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPMD-8) PMD should generate results in formats
other than html
Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPMD-8?page=comments#action_55257 ]
John Allen commented on MPMD-8:
-------------------------------
Over the weekend i took this code and MPMD-4 patches and went through the pmd:pmd and pmd:execute Mojos refactoring and aligning them with the other report and analysis plugins I use (checkstyle, coberutra, pmd)
I would like to suggest that the ruleSets config approach is adopted for both Mojos but modified to use the Locator lifted from checkstyle (MPMD-4) so that one is able to specify any number of rulesets, either from the pmd Jar or custom ones.
My current impl of both the pmd:pmd report Mojo and the pmd:execute Mojo are configured thus:
<configuration>
<ruleSets>
<ruleSet>D:\mine.xml</ruleSet>
<ruleSet>http:///localhost/basic.xml</ruleSet>
<ruleSet>/rulesets/basic.xml</ruleSet>
<ruleSet>/rulesets/controversial.xml</ruleSet>
</ruleSets>
</configuration>
Additionally I took the external report generation functionality from the execute mojo and added it to the report mojo. This is useful for integrating the output into other tools (CC, QALab) as perviously stated although i made it optional as the real item of interst is the generated site/pmd.html file.
I would like to respectfully ask that these changes be applied to your efforts before this plugin is released as its trivial to do and provides greater flexibility as well as functionality.
Note I can supply my code but as the plugin is trivial there doesnt seem much point.
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: mike perham
> Fix For: 2.0-beta-1
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1812) PMD should generate results in formats
other than html
Posted by "patrick OShea (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1812?page=all ]
patrick OShea updated MNG-1812:
-------------------------------
Attachment: how to call from pom.xml
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MNG-1812
> URL: http://jira.codehaus.org/browse/MNG-1812
> Project: Maven 2
> Type: Improvement
> Components: maven-pmd-plugin
> Versions: 2.0
> Reporter: patrick OShea
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPMD-8) PMD should generate results in formats
other than html
Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPMD-8?page=comments#action_55263 ]
John Allen commented on MPMD-8:
-------------------------------
Mike, I know it's closed, that's why I commented it, that and the fact that I didn't want my work to go to waste.
But as it's now closed and not being reopened (wouldn't want to mess with your stats) I will rebase, create more patches and assign them to a new JIRA(s)
I am interested in promoting consistency in Maven plugin behaviour and configuration, especially across plugins with common functionality/usage scenerios, something that is inherently hard to maintain with multiple contributors. My changes were made to that end.
Re the bit you didn't understand:-
"Additionally I took the external report generation functionality from the execute mojo and added it to the report mojo. This is useful for integrating the output into other tools (CC, QALab) as perviously stated although i made it optional as the real item of interst is the generated site/pmd.html file."
Pmd:execute generates a PMD report (xml/html/csv/etc). I added this functionality to the pmd:pmd Mojo that generates the site report so that I don't need to process my 1800 Java source files twice (the Azureus bit torrent client), once for the site report and again for PMD report for QALabs/cruisecontrol integration.
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: mike perham
> Fix For: 2.0-beta-1
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPMD-8) PMD should generate results in formats
other than html
Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPMD-8?page=comments#action_55261 ]
mike perham commented on MPMD-8:
--------------------------------
John, this issue is closed. If you do have a modification request, please feel free to open a new issue and explain what you need. I understand your desire for the locator functionality but I don't understand your paragraph starting with "Additionally....".
Also a patch will ALWAYS get your functionality accepted quicker, esp if it meets the guidelines enumerated at the link below. If you want to rebaseline your code based on the latest checkins and create a patch, this would be great.
http://maven.apache.org/guides/development/guide-m2-development.html
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: mike perham
> Fix For: 2.0-beta-1
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MPMD-8) PMD should generate results in formats
other than html
Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPMD-8?page=all ]
mike perham closed MPMD-8:
--------------------------
Resolution: Fixed
Fix Version: 2.0-beta-1
Thanks Patrick. I added native support for HTML, CSV, TXT and XML based on your patch.
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: mike perham
> Fix For: 2.0-beta-1
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org