diff --git a/scripts/maven-generate.sh b/scripts/maven-generate.sh index ee05797..07ed628 100644 --- a/scripts/maven-generate.sh +++ b/scripts/maven-generate.sh @@ -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}" @@ -18,9 +20,6 @@ if [[ -f "${WORKSPACES_MAVEN_SETTINGS_PATH}/settings.xml" ]]; then exit 0 fi - -mkdir "${MAVEN_GENERATE_DIRECTORY}" - cat > "${MAVEN_SETTINGS_FILE}" <