From b8931c8b558a1bb3d7b450c5bdc52e3f2e33a809 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 15 Jan 2018 13:47:27 -0500 Subject: [PATCH] Add -e flag to mvn calls Enables full stack traces and display execution errors during maven output. Change-Id: Idb16eb1187bcf857530b6288ed8728de8cabdf69 Signed-off-by: Thanh Ha --- shell/maven-build-deps.sh | 2 +- shell/maven-build.sh | 1 + shell/maven-javadoc-generate.sh | 2 +- shell/maven-sonar.sh | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/shell/maven-build-deps.sh b/shell/maven-build-deps.sh index 5cf2663c..3ff3f24f 100644 --- a/shell/maven-build-deps.sh +++ b/shell/maven-build-deps.sh @@ -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" \ diff --git a/shell/maven-build.sh b/shell/maven-build.sh index 45851380..6be1900c 100644 --- a/shell/maven-build.sh +++ b/shell/maven-build.sh @@ -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 \ diff --git a/shell/maven-javadoc-generate.sh b/shell/maven-javadoc-generate.sh index 6199b4d7..405b29b0 100644 --- a/shell/maven-javadoc-generate.sh +++ b/shell/maven-javadoc-generate.sh @@ -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 \ diff --git a/shell/maven-sonar.sh b/shell/maven-sonar.sh index 525125b1..ef9bea28 100644 --- a/shell/maven-sonar.sh +++ b/shell/maven-sonar.sh @@ -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 \ -- 2.16.6