title: Specifying specific jar files with maven
body: <p>in ~/.m2/path/to/jarfiles there are to jar files. One is dependencyName.jar and the other is dependencyName-runtime.jar I am trying to use the maven-dependency-plugin to copy the runtime version of the jar but it keeps copying the regular version of the jar.</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.dependency.version}&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;copy&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;copy&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                                  &lt;artifactId&gt;org.jacoco.agent&lt;/artifactId&gt;
                                  &lt;version&gt;${code.coverage.jacoco.version}&lt;/version&gt;
                                  &lt;type&gt;jar&lt;/type&gt;
                                  &lt;overWrite&gt;false&lt;/overWrite&gt;
                              &lt;/artifactItem&gt;
                          &lt;/artifactItems&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>