apache / apache/maven-pmd-plugin

[MPMD-303] Configuration is ignored

Open
#274 2 comments 0 reactions 0 assignees View on GitHub
bug priority:critical
Dominant language
Java
Stars
66
Forks
55
Avg merge
8d 16h
Merged PRs (30d)
7

Description

**[Luigi Berrettini](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=luigiberrettini)** opened **[MPMD-303](https://issues.apache.org/jira/browse/MPMD-303?redirect=false)** and commented

I configured the reporting plugin this way:

```
 
org.apache.maven.plugins
maven-pmd-plugin
3.13.0


/category/java/bestpractices.xml
/category/java/errorprone.xml
/category/java/security.xml
/category/java/performance.xml
/category/java/multithreading.xml
/category/java/design.xml
/category/java/codestyle.xml
/category/java/documentation.xml

true
1
1
true
true
true
false
false
false

```

 

When I run **_mvn site_** or **_mvn pmd:pmd_** no output is display on the console and the default ruleset is used since only **_target\pmd\rulesets\maven-pmd-plugin-default.xml_** is generated.

Looking at the code on GitHub I see the repo contains only the default ruleset.

 

Moreover the build plugin configuration does not support rulesets which would be a nice to have.

---

**Affects:** 3.13.0

**Attachments:**
- [poc-mvn-pmd-plugin.zip](https://issues.apache.org/jira/secure/attachment/13001703/poc-mvn-pmd-plugin.zip) (_2.24 kB_)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.