File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,10 +25,18 @@ ENV JAVA_HOME /usr/lib/jvm/java-21-openjdk
2525RUN /usr/local/apache-maven-3.9.12/bin/mvn clean install -DskipTests=true
2626# Download maven index data
2727WORKDIR /maven-index-data
28- RUN DOWNLOAD_URL=$(wget --quiet -O - https://api.github.com/repos/konveyor/maven-search-index/releases/latest | grep '"browser_download_url".*maven-index-data.*\. zip' | sed -E 's/.*"browser_download_url": "([^"]+)".*/\1 /' ) && \
29- wget --quiet ${DOWNLOAD_URL} -O maven-index-data.zip && \
30- unzip maven-index-data.zip && \
31- rm maven-index-data.zip
28+ RUN set -e; \
29+ URL=$(wget -qO- https://api.github.com/repos/konveyor/maven-search-index/releases/latest \
30+ | grep '"browser_download_url".*maven-index-data.*\. zip' \
31+ | sed -E 's/.*"browser_download_url": "([^"]+)".*/\1 /' \
32+ || true); \
33+ if [ -z "$URL" ]; then \
34+ echo "Falling back to direct download" ; \
35+ URL=https://github.com/konveyor/maven-search-index/releases/download/v2025-11-11/maven-index-data-v20251112021242.zip; \
36+ fi; \
37+ wget -q "$URL" -O maven-index-data.zip && \
38+ unzip maven-index-data.zip && \
39+ rm maven-index-data.zip
3240
3341FROM registry.access.redhat.com/ubi9/ubi-minimal
3442# Java 1.8 is required for backwards compatibility with older versions of Gradle
You can’t perform that action at this time.
0 commit comments