title: Error “Could not transfer metadata” jenkins Maven deploy artifacts
body: <p>I just launched a job on Jenkins for deploy the artifacts in nexus repository but I got the message below.</p>
  
  <blockquote>
    <p>[INFO]
    ------------------------------------------------------------------------ [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
    (default-deploy) on project maven-simple: Failed to retrieve remote
    metadata
    com.github.jitpack:maven-simple:0.2-SNAPSHOT/maven-metadata.xml: Could
    not transfer metadata
    com.github.jitpack:maven-simple:0.2-SNAPSHOT/maven-metadata.xml
    from/to my-snapshots
    (<a href="http://localhost:8181/repository/maven-snapshots/" rel="nofollow noreferrer">http://localhost:8181/repository/maven-snapshots/</a>): Connect to
    localhost:8181 [localhost/127.0.0.1] failed: Connection refused
    (Connection refused) -> [Help 1] [ERROR]</p>
  </blockquote>
  
  <p>Thank you for your help.</p>