title: Error trying to import oracle jdbc7 driver with Maven
body: <p>I cannot import the jdbc7 oracle driver with maven, I did everything like in the tutorial <a href="https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc#pom" rel="nofollow">Oracle Blogs</a> but I received the follow error:</p>
  
  <blockquote>
    <p>Could not resolve dependencies for project
    com.jp:database_connection_app:jar:0.0.1:  Failed to collect
    dependencies at com.oracle.jdbc:ojdbc7:jar:12.1.0.2:  Failed to read
    artifact descriptor for com.oracle.jdbc:ojdbc7:jar:12.1.0.2:  Could
    not transfer artifact com.oracle.jdbc:ojdbc7: pom:12.1.0.2 from/to
    maven.oracle.com (<a href="https://maven.oracle.com" rel="nofollow">https://maven.oracle.com</a>):  unexpected end of stream
    on Connection{maven.oracle.com:443,  proxy=HTTP @ /myProxyIP:myPort
    hostAddress=hostAddressIP cipherSuite=none protocol=http/1.1} 
                      (recycle count=0): \n not found: size=0 content=... -></p>
  </blockquote>
  
  <p>A special case to me is that I'm in behind a proxy but I already configure the settings.xml file and maven can download all the dependencies except the JDBC.</p>
  
  <p>In the tutorial mentioned, I didn't understand which information shall be hier...</p>
  
  <pre><code>&lt;basicAuthScope&gt;
      &lt;host&gt;ANY &lt;/host&gt;
      &lt;port&gt;ANY &lt;/port&gt;
      &lt;realm&gt;OAM 11g &lt;/realm&gt;
  &lt;/basicAuthScope&gt;
  </code></pre>
  
  <p>Maybe this is the error source.</p>
  
  <p>Here is my settings.xml...</p>
  
  <pre><code>&lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                    https://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
  &lt;localRepository&gt;${user.home}/.m2/repository&lt;/localRepository&gt;
  &lt;interactiveMode&gt;true&lt;/interactiveMode&gt;
  &lt;usePluginRegistry&gt;false&lt;/usePluginRegistry&gt;
  &lt;offline&gt;false&lt;/offline&gt;
  &lt;pluginGroups/&gt;
  &lt;servers&gt; 
      &lt;server&gt; 
        &lt;id&gt;maven.oracle.com&lt;/id&gt; 
        &lt;username&gt;myUsername&lt;/username&gt; 
        &lt;password&gt;My_Encripted_Password&lt;/password&gt; 
         &lt;configuration&gt;
           &lt;basicAuthScope&gt;
             &lt;host&gt;ANY&lt;/host&gt;
             &lt;port&gt;ANY&lt;/port&gt;
             &lt;realm&gt;OAM 11g&lt;/realm&gt;
           &lt;/basicAuthScope&gt;
       &lt;httpConfiguration&gt;
         &lt;all&gt;
           &lt;params&gt;
           &lt;property&gt;
              &lt;name&gt;http.protocol.allow-circular-redirects&lt;/name&gt;
              &lt;value&gt;%b,true&lt;/value&gt;
           &lt;/property&gt;
           &lt;/params&gt;
         &lt;/all&gt;
       &lt;/httpConfiguration&gt;
         &lt;/configuration&gt;
      &lt;/server&gt; 
  &lt;/servers&gt;
  &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;UK&lt;/id&gt;
        &lt;name&gt;UK Central&lt;/name&gt;
        &lt;url&gt;http://uk.maven.org/maven2&lt;/url&gt;
        &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
      &lt;/mirror&gt;
  &lt;/mirrors&gt;
  &lt;proxies&gt;
      &lt;proxy&gt;
        &lt;id&gt;default&lt;/id&gt;
        &lt;active&gt;true&lt;/active&gt;
        &lt;protocol&gt;http&lt;/protocol&gt;
        &lt;host&gt;myProxy&lt;/host&gt;
        &lt;port&gt;myPort&lt;/port&gt;
        &lt;username&gt;myUsername&lt;/username&gt;
        &lt;password&gt;myPassword&lt;/password&gt;
        &lt;nonProxyHosts&gt;*.google.com&lt;/nonProxyHosts&gt;
      &lt;/proxy&gt;
  &lt;/proxies&gt;
  &lt;profiles/&gt;
  &lt;activeProfiles/&gt;
  &lt;/settings&gt; 
  </code></pre>
  
  <p>Here is my POM...</p>
  
  <pre><code>&lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.oracle.jdbc&lt;/groupId&gt;
            &lt;artifactId&gt;ojdbc7&lt;/artifactId&gt;
            &lt;version&gt;12.1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.oracle.jdbc&lt;/groupId&gt;
            &lt;artifactId&gt;ucp&lt;/artifactId&gt;
            &lt;version&gt;12.1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt; 
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;maven.oracle.com&lt;/id&gt;
              &lt;name&gt;oracle-maven-repo&lt;/name&gt;
              &lt;url&gt;https://maven.oracle.com&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/releases&gt;
          &lt;/repository&gt;
       &lt;/repositories&gt;
  
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;maven.oracle.com&lt;/id&gt;
              &lt;name&gt;oracle-maven-repo&lt;/name&gt;
              &lt;url&gt;https://maven.oracle.com&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/releases&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  </code></pre>
  
  <p>The settings-security.xml is created under the same path of the settings.xml</p>
  
  <p>Thanks for the help.</p>