title: How to add JaCoCo in maven
body: <p>I have written a unit test case using JUnit now I want to add JaCoCo in my build tool that is moving 3.2.1.I am new to Maven. While adding it, I have to doubt that I want to add it in the dependency or plugin ? There are both are available,such that is following</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
    &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;0.7.2-SNAPSHOT&lt;/version&gt;
  &lt;/plugin&gt;
  
  &lt;dependency&gt;
     &lt;groupId&gt;org.codehaus.sonar.plugins&lt;/groupId&gt;
     &lt;artifactId&gt;sonar-jacoco-plugin&lt;/artifactId&gt;
     &lt;version&gt;3.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I desire to append it in the dependency is it enough for the plugin?</p>
  
  <p>Please any body clarify it</p>