[ 
https://issues.apache.org/jira/browse/MPMD-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018986#comment-17018986
 ] 

Andreas Dangel commented on MPMD-296:
-------------------------------------

The new property is called {{rulesetsTargetDirectory}}. The default value is 
"{{${project.build.directory}/pmd/rulesets}}". In order to have the old 
behavior, it needs to be set to "{{${project.build.directory}}}".

> Copy ruleset files into a subdirectory of target
> ------------------------------------------------
>
>                 Key: MPMD-296
>                 URL: https://issues.apache.org/jira/browse/MPMD-296
>             Project: Maven PMD Plugin
>          Issue Type: Improvement
>          Components: PMD
>            Reporter: Andreas Dangel
>            Assignee: Andreas Dangel
>            Priority: Major
>             Fix For: 3.13.0
>
>
> From MPMD-289:
> {quote}
> if we're copying ruleset files into the build dir & expecting very specific 
> (and somewhat generic) file names in downstream processes, we should output 
> everything into specific sub-directories under the maven build directory 
> (e.g., target/pmd/report/pmd.xml, target/pmd/rulesets/pmd.xml)
> {quote}
> Note: This improvement will change existing behavior by default.
> Therefore a new parameter should be introduced to allow to change it back to 
> the old behavior.
> Reason why this improvement makes sense: In case, your ruleset is called 
> "pmd.xml", then this conflicts with the report format xml, which is written 
> to "target/pmd.xml" as well. Therefore, the rulesets should be copied into 
> "target/pmd/rulesets/..." instead of to "target/" directly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to