Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-383

PMD should fail when there is a processing error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.21.0
    • None
    • PMD
    • None

    Description

      We had the case that PMD can't process some processing error but the build does not fail.

       

      [2023-07-28T10:59:44.102Z] [INFO] --- maven-pmd-plugin:3.20.0:pmd (pmd) @ mod-config-client-cst ---
      [2023-07-28T10:59:44.692Z] [INFO] PMD version: 6.53.0
      [2023-07-28T10:59:45.672Z] [WARNING] Removed misconfigured rule: GK-SAP-ApacheLoggerDeniedRule  cause: missing value
      [2023-07-28T10:59:45.672Z] [WARNING] There are 3 PMD processing errors:
      [2023-07-28T10:59:45.672Z] [WARNING] /var/lib/hudson-slave/workspace/hmr.MAIN.00-FEATURE-BRANCHES/pos/config/mod-config-client-cst/src/test/java/com/gk_software/cst/client/AppInfoProviderImpl_CST_Test.java: PMDException: Error while processing /var/lib/hudson-slave/workspace/hmr.MAIN.00-FEATURE-BRANCHES/pos/config/mod-config-client-cst/src/test/java/com/gk_software/cst/client/AppInfoProviderImpl_CST_Test.java
      [2023-07-28T10:59:45.948Z] /var/lib/hudson-slave/workspace/hmr.MAIN.00-FEATURE-BRANCHES/pos/config/mod-config-client-cst/src/test/java/com/gk_software/pos/api/model/config/component/client/print/additional_printout/Trigger_CFH_CST_Test.java: PMDException: Error while processing /var/lib/hudson-slave/workspace/hmr.MAIN.00-FEATURE-BRANCHES/pos/config/mod-config-client-cst/src/test/java/com/gk_software/pos/api/model/config/component/client/print/additional_printout/Trigger_CFH_CST_Test.java
      [2023-07-28T10:59:45.948Z] /var/lib/hudson-slave/workspace/hmr.MAIN.00-FEATURE-BRANCHES/pos/config/mod-config-client-cst/src/main/java/com/gk_software/pos/api/model/config/component/client/print/additional_printout/Trigger_CFH_CST.java: PMDException: Error while processing /var/lib/hudson-slave/workspace/hmr.MAIN.00-FEATURE-BRANCHES/pos/config/mod-config-client-cst/src/main/java/com/gk_software/pos/api/model/config/component/client/print/additional_printout/Trigger_CFH_CST.java
      [2023-07-28T10:59:45.948Z] [INFO] Rendering content with org.apache.maven.skins:maven-default-skin:jar:1.3 skin.
      [2023-07-28T10:59:46.210Z] [INFO] 
      [2023-07-28T10:59:46.210Z] [INFO] <<< maven-pmd-plugin:3.20.0:check (pmd-check) < :pmd @ mod-config-client-cst <<<
       

       

      My expectation would be that the build failed when there a processing errors. 

       

      Attachments

        1. image-2023-07-28-13-34-28-717.png
          143 kB
          Thomas Nikolay

        Activity

          People

            Unassigned Unassigned
            tnikolay Thomas Nikolay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: