Skip to content
Permalink
Browse files
Show Maven version and stack traces (#252)
Show Maven version on tasks that execute `mvn`, and show stack traces,
if there are any, if `mvn` fails.
  • Loading branch information
ctubbsii committed Aug 19, 2020
1 parent 9638e33 commit 358ad9dd7375b362f1cde39591314b121a9b8763
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
@@ -39,7 +39,7 @@ function fetch_accumulo() {
rm -f "$DOWNLOADS/$ACCUMULO_TARBALL"
pushd .
cd "$ACCUMULO_REPO"
mvn clean package "${maven_args[@]}"
mvn -V -e clean package "${maven_args[@]}"
accumulo_built_tarball=$ACCUMULO_REPO/assemble/target/$ACCUMULO_TARBALL
if [[ ! -f "$accumulo_built_tarball" ]]; then
echo
@@ -65,7 +65,7 @@ function fetch_fluo() {
if [[ -n "$FLUO_REPO" ]]; then
rm -f "$DOWNLOADS/$FLUO_TARBALL"
cd "$FLUO_REPO"
mvn clean package -DskipTests -Dformatter.skip
mvn -V -e clean package -DskipTests -Dformatter.skip

fluo_built_tarball=$FLUO_REPO/modules/distribution/target/$FLUO_TARBALL
if [[ ! -f "$fluo_built_tarball" ]]; then
@@ -102,7 +102,7 @@ fluo-yarn)
if [[ -n "$FLUO_YARN_REPO" ]]; then
rm -f "$DOWNLOADS/$FLUO_YARN_TARBALL"
cd "$FLUO_YARN_REPO"
mvn clean package -DskipTests -Dformatter.skip
mvn -V -e clean package -DskipTests -Dformatter.skip

built_tarball=$FLUO_YARN_REPO/target/$FLUO_YARN_TARBALL
if [[ ! -f "$built_tarball" ]]; then
@@ -47,7 +47,7 @@ if [[ $HADOOP_VERSION =~ ^3\.[012]\..*$ ]]; then
# need the following for Java 11, because Hadoop doesn't include it until 3.3
# Using maven-dependency-plugin version 3.1.1 explicitly, because some older
# versions require to be executed within a POM project
mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:copy \
mvn -V -e org.apache.maven.plugins:maven-dependency-plugin:3.1.1:copy \
-Dartifact=javax.activation:javax.activation-api:1.2.0 \
-DoutputDirectory="$HADOOP_HOME/share/hadoop/common/lib/"
fi
@@ -21,7 +21,7 @@ TARBALL_PATH=$PROXY_REPO/target/$PROXY_TARBALL

if [[ ! -f "$TARBALL_PATH" ]]; then
cd $PROXY_REPO/
mvn clean package -Ptarball
mvn -V -e clean package -Ptarball
fi

print_to_console "Installing Accumulo Proxy at $PROXY_HOME"

0 comments on commit 358ad9d

Please sign in to comment.