Skip to content

Commit

Permalink
Specify Maven version
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Nov 16, 2024
1 parent ff41182 commit 7bdacee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pi4j-builder-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ RUN apt-get install --yes openjdk-21-jdk-headless
ENV JAVA_HOME="/usr/lib/jvm/java-21-openjdk-$TARGETARCH/"

# install Apache Maven
RUN apt list -a maven
RUN apt-get install --yes maven=3.9.0
RUN curl -s "https://get.sdkman.io" | bash
RUN source "$HOME/.sdkman/bin/sdkman-init.sh"
RUN sdk install maven 3.9.4
RUN sdk use maven 3.9.4

# configure Maven with custom settings for defined M2 repository path
COPY maven-settings.xml /usr/share/maven/conf/settings.xml
Expand Down

0 comments on commit 7bdacee

Please sign in to comment.