Skip to content

Commit

Permalink
Fixed issue with workspace maven-settings not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Aneesh-M-Bhat authored and openshift-merge-bot[bot] committed Sep 25, 2024
1 parent 121c398 commit 8cf01a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/maven-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ if [[ -f ${MAVEN_SETTINGS_FILE} ]]; then
exit 0
fi

mkdir "${MAVEN_GENERATE_DIRECTORY}"

# Check if settings.xml exists in the workspace maven-settings
if [[ -f "${WORKSPACES_MAVEN_SETTINGS_PATH}/settings.xml" ]]; then
cp "${WORKSPACES_MAVEN_SETTINGS_PATH}/settings.xml" "${MAVEN_SETTINGS_FILE}"
Expand All @@ -18,9 +20,6 @@ if [[ -f "${WORKSPACES_MAVEN_SETTINGS_PATH}/settings.xml" ]]; then
exit 0
fi


mkdir "${MAVEN_GENERATE_DIRECTORY}"

cat > "${MAVEN_SETTINGS_FILE}" <<EOF
<settings>
<servers>
Expand Down

0 comments on commit 8cf01a7

Please sign in to comment.