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 :(
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)
FROM jenkins/ssh-slave
# Install selected extensions and other stuff
RUN apt-get update && apt-get -y --no-install-recommends install && apt-get clean
# Install maven
RUN apt-get install -y maven
COPY ./settings.xml /usr/share/maven/conf/settings.xml
Can anyone help? Thank you very much in advance.