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 private Maven repository (Sonatype Nexus).
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.
I thought on Docker accessing the Nexus Maven repository, but I did not find how can wget
download a jar from a private repository. I did not found on Nexus documentation how I can pass authentication parameters to access a private URL. Does anyone know that?
PS: I also accept advice of easier solutions to accomplish this.