Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.15/apache-maven-3.9.15-bin.zip
5 changes: 3 additions & 2 deletions docker/Dockerfile.redhat-app.multistage
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
FROM registry.access.redhat.com/ubi8/openjdk-21:1.23-4.1778751353 AS build
ARG MAVEN_BUILD_EXTRA_ARGS=
RUN echo "$MAVEN_BUILD_EXTRA_ARGS"

USER root
RUN microdnf install -y gzip && microdnf clean all
USER 185
COPY mvnw pom.xml maven-settings.xml* /usr/src/app/
COPY .mvn /usr/src/app/.mvn
RUN cd /usr/src/app/ && ./mvnw verify clean --fail-never
COPY src /usr/src/app/src
USER root
RUN chown -R 185 /usr/src/app
RUN microdnf install -y gzip && microdnf clean all
USER 185
RUN cd /usr/src/app/ && ./mvnw clean install -DskipTests $MAVEN_BUILD_EXTRA_ARGS

Expand Down
Loading
Loading