title: How to integrate maven-surefire-report-plugin into maven-site-plugin using report-only goal
body: <p>I have the following issue:</p>
  
  <p>The maven-surefire-report-plugin invokes the lifecycle goal <code>test</code>. This starts my testrunner again. To prevent this, they made this workaround:
  <a href="http://jira.codehaus.org/browse/SUREFIRE-257" rel="nofollow">http://jira.codehaus.org/browse/SUREFIRE-257</a></p>
  
  <p>I am now encountering difficulties implementing this into my POM.
  They have the following note on the page:</p>
  
  <blockquote>
    <p>Note: As of version 2.8 this plugin requires Maven Site Plugin 2.1 or
    higher to work properly. Version 2.7.2 and older are still compatible
    with newer surefire versions, so mixing is possible.</p>
  </blockquote>
  
  <p>My maven runs: "clean deploy site-deploy"</p>
  
  <p>This is my POM part:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;reportPlugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.7&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;dependencyDetailsEnabled&gt;false&lt;/dependencyDetailsEnabled&gt;
                      &lt;dependencyLocationsEnabled&gt;false&lt;/dependencyLocationsEnabled&gt;
                  &lt;/configuration&gt;
                  &lt;reportSets&gt;
                      &lt;reportSet&gt;
                          &lt;reports&gt;
                              &lt;report&gt;index&lt;/report&gt;
                              &lt;report&gt;dependencies&lt;/report&gt;
                              &lt;report&gt;project-team&lt;/report&gt;
                          &lt;/reports&gt;
                      &lt;/reportSet&gt;
                  &lt;/reportSets&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.9&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;outputDirectory&gt;${project.build.directory}/site&lt;/outputDirectory&gt;
                      &lt;reportsDirectories&gt;
                          &lt;reportsDirectories&gt;${project.build.directory}/site/surefire-reports&lt;/reportsDirectories&gt;
                      &lt;/reportsDirectories&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jxr-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/reportPlugins&gt;
          &lt;generateReports&gt;true&lt;/generateReports&gt;
          &lt;inputEncoding&gt;UTF-8&lt;/inputEncoding&gt;
          &lt;outputEncoding&gt;UTF-8&lt;/outputEncoding&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>How do I configure it that only <code>surefire-report:report-only</code> is triggered and the <code>test</code>-phase is not invoked (but do everything else is done in <code>site</code>-phase)?</p>