Details
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
- is superceded by
-
SONARPLUGINS-1906
Integrate Flex parser based on SSLR
-
Can you try adding an empty src directory in the root directory of the project ?