title: Add mysql connector to a maven / nexus build in eclipse
body: <p>I'm trying to connect to a mysql database in java and so I have to add  <code>mysql-connector-java:jar</code> to my eclipse project. The integration with maven is not working though.</p>
  
  <p>Here is what I have in my settings.xml:</p>
  
  <pre><code>&lt;profile&gt;
  &lt;id&gt;default&lt;/id&gt;
  &lt;properties&gt;
   &lt;mvn.path&gt;.../maven-3.0.4/bin/mvn.bat&lt;/mvn.path&gt;
   &lt;javac.5&gt;...bin/javac.exe&lt;/javac.5&gt; 
   &lt;javac.6&gt;..../javac.exe&lt;/javac.6&gt;
  &lt;/properties&gt;
  &lt;repositories&gt;
   &lt;repository&gt;
    &lt;id&gt;central-repository&lt;/id&gt;
    &lt;name&gt;OSS central Maven Release Repository&lt;/name&gt;
    &lt;url&gt;https://oss.sonatype.org/content/repositories/releases&lt;/url&gt;
   &lt;/repository&gt;
   &lt;repository&gt;
    &lt;id&gt;public-repository-main&lt;/id&gt;
    &lt;name&gt;Central Repository&lt;/name&gt;
    &lt;url&gt;https://repo1.maven.org/maven2&lt;/url&gt;
   &lt;/repository&gt;
   &lt;repository&gt;
    &lt;id&gt;public-repository&lt;/id&gt;
    &lt;name&gt;OSS Maven Release Repository&lt;/name&gt;
    &lt;url&gt;https://oss.sonatype.org/content/groups/public&lt;/url&gt;
   &lt;/repository&gt;
  &lt;/repositories&gt;
  &lt;/profile&gt;
  
  &lt;interactiveMode&gt;true&lt;/interactiveMode&gt; 
  &lt;!-- offline
   | Determines whether maven should attempt to connect to the network when executing
   | a build.
   | This will have an effect on artifact downloads, artifact deployment, and others.
   |
   | Default: false &lt;offline&gt;false&lt;/offline&gt; --&gt;
  &lt;offline&gt;false&lt;/offline&gt;
  &lt;mirror&gt; 
    &lt;id&gt;nexus&lt;/id&gt;
    &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
    &lt;url&gt;http://xxxx:8083/nexus/content/groups/public&lt;/url&gt;
  &lt;/mirror&gt;
  </code></pre>
  
  <p>And here is the error I get when I try to a <code>mvn clean install</code> </p>
  
  <pre><code>Failure to find mysql:mysql-connector-java:jar:5.0.5 in
  http://xxxx:8083/nexus/content/groups/public
  </code></pre>
  
  <p>How can I force nexus to download the artifact from my public repositories to nexus? Do I have to add it manually?</p>