title: What does mvn sonar:sonar do?
body: <p>What are the maven lifecycle phases does the command <code>mvn sonar:sonar</code> execute?</p>
  
  <p>While I see the logs that run over the screen, at a very high level <code>test, install</code> that I spotted out.</p>
  
  <p>Consider the following example,</p>
  
  <p>I have a maven project like the following</p>
  
  <pre><code>maven-root
  
   maven-child-1
  
   maven-child-2
  </code></pre>
  
  <p>Consider the following scenario, I have done them sequentially at root level</p>
  
  <ol>
  <li><code>mvn clean install</code> </li>
  <li><code>mvn sonar:sonar</code>  -- See the report</li>
  <li>Modified child-2 by adding some test cases to increase the code coverage</li>
  <li>Run <code>mvn sonar:sonar</code></li>
  </ol>
  
  <p>My changes for the test cases are not reflecting in the report.</p>
  
  <ol>
  <li>I have deleted the report from sonarqube </li>
  <li><code>mvn sonar:sonar</code></li>
  </ol>
  
  <p>Still that generates me the old report.</p>
  
  <p>In brief, Do I need to perform <code>mvn clean install</code> and then <code>mvn sonar:sonar</code> ?</p>
  
  <p>If <code>mvn sonar:sonar</code> covers executing the <code>mvn clean install</code>, why the report gives me old numbers?</p>