[
https://issues.apache.org/jira/browse/MPMD-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17537694#comment-17537694
]
Michael Osipov commented on MPMD-299:
-------------------------------------
I know where the bug is. Here is likely your problem:
https://github.com/apache/maven-site-plugin/blob/fb180da9f11dc452863a53dab35d3a1583af3ef9/src/main/java/org/apache/maven/plugins/site/render/SiteJarMojo.java#L140-L143
The the check goal forks cpd and pmd which generate the reports in the
outputDirectory this check skips {{super.execute()}} because the dir exists. It
assumes that {{site:site}} has been run previously.
Let me verify this...
> Change of default skipEmptyReport value breaks site:jar
> -------------------------------------------------------
>
> Key: MPMD-299
> URL: https://issues.apache.org/jira/browse/MPMD-299
> Project: Maven PMD Plugin
> Issue Type: Bug
> Components: CPD, PMD
> Affects Versions: 3.13.0
> Reporter: Matt Nelson
> Priority: Major
> Fix For: waiting-for-feedback, wontfix-candidate
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Change of default skipEmptyReport value in MPMD-225 causes
> [site:jar|https://maven.apache.org/plugins/maven-site-plugin/jar-mojo.html]
> to be empty.
> Had to revert to the value to get site jars working again.
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-pmd-plugin</artifactId>
> <version>3.13.0</version>
> <configuration>
> <skipEmptyReport>true</skipEmptyReport>
> </configuration>
> </plugin>
> {code}
> Working on getting a repro case against
> https://github.com/apache/maven-pmd-plugin
--
This message was sent by Atlassian Jira
(v8.20.7#820007)