Add -e flag to mvn calls 97/8397/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 15 Jan 2018 18:47:27 +0000 (13:47 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 15 Jan 2018 19:05:55 +0000 (14:05 -0500)
Enables full stack traces and display execution errors during
maven output.

Change-Id: Idb16eb1187bcf857530b6288ed8728de8cabdf69
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shell/maven-build-deps.sh
shell/maven-build.sh
shell/maven-javadoc-generate.sh
shell/maven-sonar.sh

index 5cf2663..3ff3f24 100644 (file)
@@ -30,7 +30,7 @@ for project in "${PROJECTS[@]}"; do
     # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
     # shellcheck disable=SC2086
     $MVN clean install \
-        -Pq \
+        -e -Pq \
         -DskipTests=true \
         --global-settings "$GLOBAL_SETTINGS_FILE" \
         --settings "$SETTINGS_FILE" \
index 4585138..6be1900 100644 (file)
@@ -22,6 +22,7 @@ export MAVEN_OPTS
 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
 # shellcheck disable=SC2086
 $MVN clean deploy \
+    -e \
     --global-settings "$GLOBAL_SETTINGS_FILE" \
     --settings "$SETTINGS_FILE" \
     -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
index 6199b4d..405b29b 100644 (file)
@@ -24,7 +24,7 @@ export MAVEN_OPTS
 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
 # shellcheck disable=SC2086
 $MVN clean install javadoc:aggregate \
-    -Pq -Dmaven.javadoc.skip=false \
+    -e -Pq -Dmaven.javadoc.skip=false \
     -DskipTests=true \
     -Dcheckstyle.skip=true \
     -Dfindbugs.skip=true \
index 525125b..ef9bea2 100644 (file)
@@ -22,7 +22,7 @@ export MAVEN_OPTS
 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
 # shellcheck disable=SC2086
 $MVN clean deploy \
-    -Dsonar \
+    -e -Dsonar \
     --global-settings "$GLOBAL_SETTINGS_FILE" \
     --settings "$SETTINGS_FILE" \
     -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
@@ -31,7 +31,7 @@ $MVN clean deploy \
 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
 # shellcheck disable=SC2086
 $MVN $SONAR_MAVEN_GOAL \
-    -Dsonar -Dsonar.host.url="$SONAR_HOST_URL" \
+    -e -Dsonar -Dsonar.host.url="$SONAR_HOST_URL" \
     --global-settings "$GLOBAL_SETTINGS_FILE" \
     --settings "$SETTINGS_FILE" \
     -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \