title: Apache Maven Download using CURL is timed out
body: <pre><code>curl -O "https://www.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz"
  </code></pre>
  
  <p>This is the command I am using from terminal to download maven but it's either timed out or <code>curl: (7) Failed to connect to www.apache.org port 443: Operation timed out.</code></p>
  
  <p>If I use browser to download, no issue.</p>
  
  <p>My assumption is the ssl connection or certificate issue. Any idea how can I resolve the curl issue.</p>
  
  <p>Please take note, I am using this in a Dockerfile to create docker image and here is that:</p>
  
  <pre><code>FROM ******/mule-42x:v2.2.1
  
  ENV MAVEN_VERSION 3.6.3
  
  RUN mkdir -p /opt/maven \
    &amp;&amp; cd /opt/maven \
    &amp;&amp; curl -O "https://www.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" \
    &amp;&amp; tar xzvf "apache-maven-$MAVEN_VERSION-bin.tar.gz" \
    &amp;&amp; rm "apache-maven-$MAVEN_VERSION-bin.tar.gz"
  
  ENV MAVEN_HOME "/opt/maven/apache-maven-$MAVEN_VERSION"
  
  ENV PATH=$MAVEN_HOME/bin:$PATH
  </code></pre>