File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ maven::install_maven() {
196
196
exit 1
197
197
fi
198
198
199
- PATH=" ${maven_home} /bin:${PATH} "
199
+ export PATH=" ${maven_home} /bin:${PATH} "
200
200
chmod +x " ${maven_home} /bin/mvn"
201
201
}
202
202
@@ -234,8 +234,15 @@ maven::install_settings_xml() {
234
234
mkdir -p " $( dirname " ${settings_destination} " ) "
235
235
236
236
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
+
237
244
output::step " Using settings.xml from ${MAVEN_SETTINGS_PATH} "
238
- ln -sf " ${MAVEN_SETTINGS_PATH } " " ${settings_destination} "
245
+ ln -sf " ${settings_source } " " ${settings_destination} "
239
246
elif [[ -n " ${MAVEN_SETTINGS_URL:- } " ]]; then
240
247
output::step " Using settings.xml from ${MAVEN_SETTINGS_URL} "
241
248
You can’t perform that action at this time.
0 commit comments