maven - Sonar refuses to analize multimodule project -




i have upgraded sonar 5.3 6.2 , project x giving me weird errors @ sonar stage of jenkins job (altough build finishes stable).

the project standard multimodule maven java project.

entering project dashboard single message appears on screen:

"no analysis has been performed since creation. available section configuration."

but in upper-right corner red "failed" tag shows up. leads background tasks of project , there failed task error log:

the project "com.foo:bar-submodule-1" defined in sonarqube not module of project "com.foo:bar". if want stop directly analysing project "com.foo:bar-submodule-1", please first delete sonarqube , relaunch analysis of project "com.foo:bar"

i not want delete project , lose historical data.

so question is: how can add project y (that submodule of project x sonar not recognize it) submodule of project x?

edit 1

the parent project 1 has been analyzed through jenkins jobs.

your problem not sonar can't figure out submodules, root issue there project/module same name conflicting project analyzing now. happens, example, when extract submodule standalone library , moves root project , try analyse new project. since new project, sometime in past had project/module exact same name, won't able finish process. have found 3 ways fix this:

  1. delete old project, if possible option use when have analysed mistakenly new projects (with wrong parameters example) or when migrating servers , still have wrong configuration in place. can in project's configuration/administration menu, 'delete project'.

  2. rename old projects keys
    default option, since want keep old analyses data old submodules moving other projects or promoting root modules. can in project's configuration/administration menu, 'update key' option.

  3. updating current project's keys
    option use when submodules conflict other valid submodules (it can happen when have different teams creating small libraries happen have same keys). can in 2 steps. first need update project's keys following option 2. next step go project , update modules , submodules names using key sonar.modulekey. default value : similar sonar.projectkey, especified here. following these steps won't lose records , old analyses.

i hope helps.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Read npy file directly from S3 StreamingBody -