title: Unable to connect to maven repository when using proxy
body: <p>My machine is using proxy to connect internet. But I get the following error when running maven build command. And it works when I disable proxy. I don't understand why proxy matters here. </p>
  
  <pre><code>    [ERROR] Failed to execute goal on project flink-dist_2.11: Could not resolve dependencies for project org.apache.flink:flink-
  dist_2.11:jar:1.7-SNAPSHOT: Failed to collect dependencies at 
  
      org.apache.flink:flink-shaded-hadoop2-uber:jar:1.7-SNAPSHOT:
   Failed to read artifact descriptor for org.apache.flink:flink-shaded-hadoop2-uber:jar:1.7-SNAPSHOT:
   Could not transfer artifact 
      org.apache.flink:flink-shaded-hadoop2-uber:pom:1.7-SNAPSHOT from/to apache.snapshots (https://repository.
  apache.org/snapshots): Remote host closed connection during handshake: SSL peer shut down incorrectly -&gt; [Help 1]
  </code></pre>