SonarQube: How to analyze project that used to be submodule of another project?
<p>I have a project with an aggregator POM and several submodules:</p>

<pre><code>com.example:root
  |- com.example:module-a
  |- com.example:module-b
  |- com.example:module-c
</code></pre>

<p>It was decided that <code>module-b</code> needs to be a separate project, so the directory <code>module-b</code> was split off into a separate git repository.</p>

<p>Now we have 2 projects:</p>

<pre><code>com.example:root
  |- com.example:module-a
  |- com.example:module-c

com.example:module-b
</code></pre>

<p><code>com.example:root</code> was analyzed for a long time with SonarQube. I use the maven goal <code>sonar:sonar</code>.</p>

<p>Now when I analyze <code>com.example:module-b</code> with SonarQube, I get this error:</p>

<pre><code>2016.02.16 13:03:24 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVLqLZdJf9ZlZw0WwFfK
org.sonar.api.utils.MessageException: Validation of project failed:
  o The project "com.example:project-b" is already defined in SonarQube but as a module of project "com.example:root". If you really want to stop directly analysing project "com.example:root", please first delete it from SonarQube and then relaunch the analysis of project "com.example:project-b".
2016.02.16 13:03:24 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=com.example:project-b | id=AVLqLZdJf9ZlZw0WwFfK | time=302ms
</code></pre>

<p>The thing is, yes, in the past <code>com.example:project-b</code> was indeed a module of <code>com.example:root</code>, but it isn't any more now. I also don't want to stop analyzing <code>com.example:root</code> and I don't want to delete it and loose all history and all other modules.</p>

<p>How do I solve this?</p>