-
Type:
Improvement
-
Resolution: Won't Do
-
Priority:
Major
-
Component/s: multi-branch-project-plugin (not Pipeline), sonar-plugin
-
None
In maven multibranch project , while doing incremental build on the project , the build i sgood but the running sonar on top of that is not working fine.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project XXXXX: Maven session does not declare a top level project ->Â [Help 1]
Project Structure:
Parent:
   ->pom.xml (having 2 modules - ModuleA and ModuleB)
     ModuleA
        -->pom.xml
    ModuleB
       --> pom.xml
Â
now i have tried incremental build so the command that gets executed for clean install isÂ
pom.xml -amd -pl com.root.app:ModuleA clean install
but when i try to run pom.xml -amd -pl com.root.app:ModuleA sonar:sonar
Â
it fails saying Maven session does not declare a top level project -> [Help 1]
[ERROR].
Â
How can i do sonar on incremental maven build.