# Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
# shellcheck disable=SC2086
-$MVN clean deploy \
+$MVN clean install \
-e -Dsonar \
--global-settings "$GLOBAL_SETTINGS_FILE" \
--settings "$SETTINGS_FILE" \
- -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
$MAVEN_OPTIONS $MAVEN_PARAMS
# Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
-e -Dsonar -Dsonar.host.url="$SONAR_HOST_URL" \
--global-settings "$GLOBAL_SETTINGS_FILE" \
--settings "$SETTINGS_FILE" \
- -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
$MAVEN_OPTIONS $MAVEN_PARAMS