title: Docker Automated build downloading private jars from a Maven Sonatype Nexus repository
body: <p>I am building a development pipeline. The Docker images will be created automatically after a successful and tested version of my java application be deployed on a <strong>private</strong> Maven repository (Sonatype Nexus).</p>
  
  <p>Once my application is built successfully, I need to publish it in somewhere, and  Docker needs to have access to download it and create a container.</p>
  
  <p>I thought on Docker accessing the Nexus Maven repository, but I did not find how can <code>wget</code> download a jar from a <strong>private repository</strong>. I did not found on Nexus documentation how I can pass authentication parameters to access a private URL. Does anyone know that?</p>
  
  <p>PS: I also accept advice of easier solutions to accomplish this.</p>