I use SonarQube to analyze two Maven projects A and B with several modules each (only one displayed here):
projectA
`- someModule
projectB
Since I moved someModule from project A into project B, I get an error like this during the analysis:
Module "myGroupId:someModule" is already part of project "myGroupId:projectA"
Project A clearly does not contain 'someModule' anymore. It doesn't even show up as a component in the Sonar GUI after a new analysis, however it's still listed under 'Project Configuration > Update Key'.
How is it possible to delete such an obsolete component without deleting the entire project?
As a work-around I now renamed the key 'projectA:someModule' to 'projectA:someModuleThatShouldNotExist', but I hope someone can suggest a better solution...
The status that you are describing is weird: if you have deleted "someModule" from project A and managed to analyze successfully this project in SonarQube, then it should not show up in the UI any longer and you should be able to analyze it within project B.
But as you can see this module in 'Project Configuration > Update Key', then you might have a workaround: