title: Maven: Error resolving version for plugin
body: <p>I am trying to get Batik working, having not worked with Java much in the last ten years or so and I'm running into problems with Maven being able to find the <code>org.apache.maven.wagon:wagon-ssh-external</code> package. </p>
  
  <p>When I open or try to build the project in Netbeans, it reports the following error:</p>
  
  <pre><code>   The project org.freehep:freehep-graphicsio:2.1.1 (/home/glenatron/Projects/batik/freehep-graphicsio/pom.xml) has 1 error
       Unresolveable build extension: 
       Error resolving version for plugin 'org.apache.maven.wagon:wagon-ssh-external' from the repositories [local (/home/glenatron/.m2/repository), freehep-maven (http://java.freehep.org/maven2), central (http://www.ibiblio.org/maven2), Codehaus (http://repository.codehaus.org/), Codehaus Snapshots (http://snapshots.repository.codehaus.org/)]:
       Plugin not found in any plugin repository -&gt; [Help 2]
  </code></pre>
  
  <p>As far as I can tell this is correct, however, I have the following in my <code>pom.xml</code> file for the project:</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;freehep-maven&lt;/id&gt;
        &lt;name&gt;Maven FreeHEP&lt;/name&gt;
        &lt;url&gt;http://java.freehep.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;maven-apache&lt;/id&gt;
          &lt;name&gt;Maven Apache&lt;/name&gt;
          &lt;url&gt;http://repo.maven.apache.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;    
          &lt;id&gt;maven1&lt;/id&gt;
          &lt;name&gt;Maven.org&lt;/name&gt;
          &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
  </code></pre>
  
  <p>From what I can judge a) that plugin should be available in one of those repositories and b) if they are in the <code>pom.xml</code> file, Maven should be searching them but I can't see any sign of it doing that.</p>
  
  <p>The project I am trying to work with is <a href="http://java.freehep.org/vectorgraphics/freehep-graphicsio-emf/source-repository.html" rel="nofollow">the FreeHEP EMF driver.</a> The bigger screen solution was to use the unsignposted but much more up to date <a href="http://freehep.github.io/freehep-vectorgraphics/index.html" rel="nofollow">Github repository</a> version.</p>