SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-922

In mutiproject fails when it trying run PMD on the parent POM

    Details

    • Number of attachments :
      1

      Description

      We have a flash multiproject and this plugin appears to run fine until it gets to the parent project (of type pom).

      It then tries to run flexpmd which fails with

      [11:11:06]: [INFO] Building Player
      [11:11:06]: [INFO]    task-segment: [com.adobe.ac:flex-pmd-metrics-maven-plugin:1.2:check]
      [11:11:06]: [INFO] ------------------------------------------------------------------------
      [11:11:06]: [INFO] Preparing flex-pmd-metrics:check
      [11:11:06]: [INFO] [flex-pmd-metrics:metrics {execution: metrics}]
      [11:11:06]: [ERROR] The source directory is not found /var/build/agent/agent/work/9227d135f6ffd276/src/main/java
      [11:11:06]: [INFO] [flex-pmd-metrics:check {execution: default-cli}]
      [11:11:06]: [INFO]  Execute maven plugin flex-pmd-metrics-maven-plugin done: 33 ms
      [11:11:06]: [INFO]  Sensor FlexMetricsSensor...
      [11:11:06]: [INFO] ------------------------------------------------------------------------
      [11:11:06]: [ERROR] BUILD ERROR
      [11:11:06]: [INFO] ------------------------------------------------------------------------
      [11:11:06]: [INFO] Can not execute Sonar
      [11:11:06]: Embedded error: File not found : /var/build/agent/agent/work/9227d135f6ffd276/target/javancss-raw-report.xml
      [11:11:06]: [INFO] ------------------------------------------------------------------------
      [11:11:06]: [INFO] For more information, run Maven with the -e switch
      

      This fails I expect as there is no code to analyse so it hasn't produced any output.

      I can't see a way to configure the plugin to not run on the parent pom.xml - as the setting is via properties.

        Issue Links

          Activity

          Hide
          Olivier Gaudin added a comment -

          Can you try adding an empty src directory in the root directory of the project ?

          Show
          Olivier Gaudin added a comment - Can you try adding an empty src directory in the root directory of the project ?
          Hide
          Ben Gidley added a comment -

          Creating a 'src/main/java' lets the build complete.

          Show
          Ben Gidley added a comment - Creating a 'src/main/java' lets the build complete.
          Hide
          Evgeny Mandrikov added a comment -

          This bug is vanished because we don't use FlexMetrics anymore - SONARPLUGINS-1906.

          Show
          Evgeny Mandrikov added a comment - This bug is vanished because we don't use FlexMetrics anymore - SONARPLUGINS-1906 .
          Hide
          Fabrice Bellingard added a comment -

          Manually tested

          Show
          Fabrice Bellingard added a comment - Manually tested
          Hide
          Evgeny Mandrikov added a comment -

          Covered by integration tests.

          Show
          Evgeny Mandrikov added a comment - Covered by integration tests.

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Ben Gidley
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: