[ https://issues.apache.org/jira/browse/MPMD-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17880071#comment-17880071 ]
Piotr Zygielo commented on MPMD-403: ------------------------------------ For completeness - with {{:pmd}} being reporting plugin, and with no goal (that I could find) to do non-reporting analysis to produce {{pmd.xml}} only, with reporting context (and checking for {{{}skin{}}}) being prepared early, I'm able to work around my original problem, by configuring {{doxia}} to use other than {{html}} format (and not fail for project with not updated {{{}site.xml{}}}). > Standalone :pmd goal cannot be executed for 'skin cannot be null' > ----------------------------------------------------------------- > > Key: MPMD-403 > URL: https://issues.apache.org/jira/browse/MPMD-403 > Project: Maven PMD Plugin > Issue Type: Wish > Components: PMD > Affects Versions: 3.25.0 > Environment: Apache Maven 3.9.9 > (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) > Java version: 21.0.4 > Reporter: Piotr Zygielo > Priority: Minor > > For example with project that has no {{m-pmd-p}} configured: > {code:java} > $ git init maven-jar-plugin > $ cd maven-jar-plugin > $ git remote add origin https://github.com/apache/maven-jar-plugin > $ git fetch origin --depth=1 be27b5f35a8ca911a459d992c9c8f106084bf525 > $ git checkout be27b5f35a8ca911a459d992c9c8f106084bf525 > {code} > previously (3.24.0): > {code:java} > $ mvn org.apache.maven.plugins:maven-pmd-plugin:3.24.0:pmd > ... > [INFO] --- pmd:3.24.0:pmd (default-cli) @ maven-jar-plugin --- > [WARNING] Unable to locate Source XRef to link to - DISABLED > [INFO] PMD version: 7.3.0 > [INFO] Rendering content with > org.apache.maven.skins:maven-default-skin:jar:1.3 skin. > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 7.372 s > [INFO] Finished at: 2024-09-07T15:04:57+02:00 > [INFO] > ------------------------------------------------------------------------ > {code} > while now (3.25.0): > {code:java} > $ mvn org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 7.802 s > [INFO] Finished at: 2024-09-07T15:08:59+02:00 > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd (default-cli) on project > maven-jar-plugin: Execution default-cli of goal > org.apache.maven.plugins:maven-pmd-plugin:3.25.0:pmd failed: skin cannot be > null -> [Help 1] > {code} > > {code:java} > # first bad commit: [c31b29af9835652db9ab0b9e919c8e14bc4efabf] [MPMD-389] > Upgrade to Doxia 2.0.0 Milestone Stack > {code} > ---- > After checking {{site.xml}} there ({{m-jar-p}}), and adding {{<skin>}} it's > fine to use 3.25.0. > Thus changing the type and priority. > Feel free to close as invalid. I'm sorry for the noise. -- This message was sent by Atlassian Jira (v8.20.10#820010)