Skip to content

Commit 716767a

Browse files
committed
Fix CI
1 parent 7655884 commit 716767a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/maven.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ maven::install_maven() {
196196
exit 1
197197
fi
198198

199-
PATH="${maven_home}/bin:${PATH}"
199+
export PATH="${maven_home}/bin:${PATH}"
200200
chmod +x "${maven_home}/bin/mvn"
201201
}
202202

@@ -234,8 +234,15 @@ maven::install_settings_xml() {
234234
mkdir -p "$(dirname "${settings_destination}")"
235235

236236
if [[ -n "${MAVEN_SETTINGS_PATH:-}" ]]; then
237+
local settings_source
238+
if [[ "${MAVEN_SETTINGS_PATH}" = /* ]]; then
239+
settings_source="${MAVEN_SETTINGS_PATH}"
240+
else
241+
settings_source="${build_dir}/${MAVEN_SETTINGS_PATH}"
242+
fi
243+
237244
output::step "Using settings.xml from ${MAVEN_SETTINGS_PATH}"
238-
ln -sf "${MAVEN_SETTINGS_PATH}" "${settings_destination}"
245+
ln -sf "${settings_source}" "${settings_destination}"
239246
elif [[ -n "${MAVEN_SETTINGS_URL:-}" ]]; then
240247
output::step "Using settings.xml from ${MAVEN_SETTINGS_URL}"
241248

0 commit comments

Comments
 (0)