From e038a6fdf074f9a950622ac1ddd4f11648c95be6 Mon Sep 17 00:00:00 2001 From: amandilaras Date: Tue, 23 Apr 2024 11:19:41 +0300 Subject: [PATCH] annotation dockerfile fix --- annotation-service/Dockerfile | 5 +++-- notification-service/settings.xml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/annotation-service/Dockerfile b/annotation-service/Dockerfile index b5c4d6f33..76a8e46c2 100644 --- a/annotation-service/Dockerfile +++ b/annotation-service/Dockerfile @@ -20,9 +20,10 @@ RUN rm -f /build/annotation-web/src/main/resources/certificates/*.crt WORKDIR /build/ -RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} dependency:go-offline +RUN mvn -Dserver.username=${CITE_MAVEN_ACCOUNT_USR} -Dserver.password=${CITE_MAVEN_ACCOUNT_PSW} clean +RUN mvn -Dserver.username=${CITE_MAVEN_ACCOUNT_USR} -Dserver.password=${CITE_MAVEN_ACCOUNT_PSW} install # Build project -RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} clean package +RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} package ######################################## Run Stage ######################################## FROM eclipse-temurin:21-jre-ubi9-minimal diff --git a/notification-service/settings.xml b/notification-service/settings.xml index ffd2de359..2aae21a89 100644 --- a/notification-service/settings.xml +++ b/notification-service/settings.xml @@ -4,7 +4,7 @@ - dev + cite-repo ${server_username} ${server_password} @@ -30,4 +30,4 @@ - + \ No newline at end of file