title: jib: Unauthorized but docker login works
body: <p>I'm running in an issue with maven jib.</p>
  <p>I'm able to login on my private registry:</p>
  <pre><code>$ docker login 
    -p &lt;password&gt;
    -u &lt;user&gt;
    docker-registry-default.si-origin-cluster.t-systems.es
  Login Succeeded
  </code></pre>
  <p>With maven I'm getting:</p>
  <blockquote>
  <p>[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.5.0:build (default-cli) on project connector: Build image failed, perhaps you should make sure your credentials for 'docker-registry-default.si-origin-cluster.t-systems.es/arxius/connector' are set up correctly. See <a href="https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized" rel="nofollow noreferrer">https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized</a> for help: Unauthorized for docker-registry-default.si-origin-cluster.t-systems.es/arxius/connector: 401 Unauthorized</p>
  </blockquote>
  <p>My mvn command is:</p>
  <pre><code>$ mvn clean package
    jib:build -Dimage=docker-registry-default.si-origin-cluster.t-systems.es/arxius/connector
    -Djib.to.auth.username=&lt;user&gt;
    -Djib.to.auth.password=&lt;password&gt;
  </code></pre>
  <p>Any ideas?</p>