Skip to content

Commit b2d88a4

Browse files
authored
Update Dockerfile-mvn-no-local
added -s to point to sample_settings.xml in the root of the project
1 parent 01751b3 commit b2d88a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile-mvn-no-local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ COPY .m2 /code/.m2
1313

1414
# Download dependencies
1515
COPY pom.xml /code/
16-
RUN mvn package -q -s ${MAVEN_M2} ${MAVEN_PARAMS} -P${MAVEN_PROFILE}
16+
RUN mvn package -q -s .\sample_settings.xml ${MAVEN_PARAMS} -P${MAVEN_PROFILE}
1717
COPY src /code/src
18-
RUN mvn package -q -s ${MAVEN_M2} ${MAVEN_PARAMS} -P${MAVEN_PROFILE} && \
18+
RUN mvn package -q -s .\sample_settings.xml ${MAVEN_PARAMS} -P${MAVEN_PROFILE} && \
1919
mkdir war && \
2020
mv target/WebAPI.war war && \
2121
cd war && \

0 commit comments

Comments
 (0)