From 0a2111f4a203171fdd99babf4be26e4da3b6403b Mon Sep 17 00:00:00 2001 From: "DESKTOP-ONSRM5U\\ly" Date: Thu, 23 Jun 2022 16:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dockkfile=EF=BC=8C=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2settings.xml=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maven/Dockerfile | 9 ++------- maven/settings.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 maven/settings.xml diff --git a/maven/Dockerfile b/maven/Dockerfile index 55eea20..547c8be 100644 --- a/maven/Dockerfile +++ b/maven/Dockerfile @@ -1,8 +1,3 @@ -FROM repository.anxinyun.cn/devops/alpine:3-tz-hw +FROM maven:3-openjdk-8-slim -ENV JDK_VERSION_MAIN 8 - -ENV JDK_VERSION 8.322.06-r0 - -RUN apk add --no-cache openjdk${JDK_VERSION_MAIN}-jre==${JDK_VERSION}; \ - java -version +COPY settings.xml /root/.m2/ diff --git a/maven/settings.xml b/maven/settings.xml new file mode 100644 index 0000000..3e3f40b --- /dev/null +++ b/maven/settings.xml @@ -0,0 +1,48 @@ + + + + + + central + * + FS-Maven Repositories + http://10.8.30.22:8081/repository/FS-Maven/ + + + + + + FS-Maven + + + FS-Maven + FS-Maven + http://10.8.30.22:8081/repository/FS-Maven/ + + true + + + true + + + + + + + + + true + false + false + + + + fs-releases + admin + admin123 + + + \ No newline at end of file