title: How do I include a Maven plugin from a local repository?
body: <p>I have a custom plugin that compresses files that I need to include in my maven build. So I have included this plugin in my <code>pom.xml</code>:</p>
  
  <pre><code>   &lt;build&gt;
          // Other tags
         &lt;plugin&gt;
              &lt;groupId&gt;someGroupId&lt;/groupId&gt;
              &lt;artifactId&gt;somePlugin&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;compile&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;compress&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
   &lt;/build&gt;
  </code></pre>
  
  <p>Since it is a custom plugin, it is not available in any public Maven repository.  So whenever I try to build, I get an error message saying:</p>
  
  <pre><code>Failed to read artifact .....
  </code></pre>
  
  <p>even though I have added it to my local repository.  How can I refer to this plugin that is in my local repository?</p>