ugin/test-mojo.html#forkCount">
  <tt>forkCount</tt></a> of <tt>0</tt> or set the
  <a href="http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#forkMode">
  <tt>forkMode</tt></a> to <tt>never</tt> as this would prevent the execution of
  the tests with the <tt>javaagent</tt> set and no coverage would be recorded.
</p>

<h2>Example</h2>

<ul>
  <li>
    The JaCoCo distribution contains a simple example how code coverage 
    can be added to a Maven project.</li>
  <li>
    This <a href="ex