You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Volker Fuessler (JIRA)" <ji...@codehaus.org> on 2009/09/18 14:48:57 UTC

[jira] Updated: (MPMD-107) Making includes and excludes overwritable through a maven property

     [ http://jira.codehaus.org/browse/MPMD-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volker Fuessler updated MPMD-107:
---------------------------------

    Attachment: MPMD-107.patch

Patch that adds maven properties for in- and exclude patterns

> Making includes and excludes overwritable through a maven property
> ------------------------------------------------------------------
>
>                 Key: MPMD-107
>                 URL: http://jira.codehaus.org/browse/MPMD-107
>             Project: Maven 2.x PMD Plugin
>          Issue Type: New Feature
>            Reporter: Volker Fuessler
>            Priority: Minor
>         Attachments: MPMD-107.patch
>
>
> If you work with maven projects it is usefull to configure common things like plugins, dependencies, company information,... in a parent pom. So, in my case, we have 1 parent pom in our company, from which every project has to inherit. 
> In most cases that's it, no other configurations must be made, but sometimes you have to overwrite some includes or excludes of a plugin. In this case you have to overwrite the whole plugin in the projects pom.
> I think, it would be very usefull, if there would be a possibility to overwrite includes and excludes just by using a simple maven property which takes a string with comma separated patterns that should be in- or excluded.
> I patched the plugin but I thought this could be usefull for other people, so I will add an patch here. 
> The patch adds the following properties, which can be used in a maven <properties> section:
> maven.pmd.includesList
> maven.pmd.excludesList
> example:
> ...
>     <properties>
>         <maven.pmd.excludesList>**/some/package/**/*.java, **/generated-sources/**/*.java</maven.pmd.excludesList>
>         ...
>     </properties>
> ...

-- 
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