title: Dockerfile as jenkins slave with maven settings
body: <p>I am using the image jenkins/ssh-slave as base in my dockerfile. I would like to install a specific maven version and configure the settings. But it does not work, it is not picking the settings to download the artifactories from my nexus. Moreover, I dont know who to specify the maven version :(</p>
  
  <p>You can see my dockerfile below. 
  I have tried to install Maven typing maven:3.5.6 but it says it cannot find that. 
  And also I copy my settings but maven does not go to my nexus to download the dependencies (the settings.xml works in local)</p>
  
  <pre><code>FROM jenkins/ssh-slave
  
  # Install selected extensions and other stuff
  RUN apt-get update &amp;&amp; apt-get -y --no-install-recommends install &amp;&amp; apt-get clean   
  
  # Install maven 
  RUN apt-get install -y maven
  
  COPY ./settings.xml /usr/share/maven/conf/settings.xml
  
  </code></pre>
  
  <p>Can anyone help? 
  Thank you very much in advance.</p>