Skip to content

Commit

Permalink
Fixes #64 Helidon 0.10.0 build failed in local system. Testing the ar…
Browse files Browse the repository at this point in the history
…chetype corrupted the top pom (#68)
  • Loading branch information
barchetta committed Sep 19, 2018
1 parent d19cc37 commit f8fa04d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion examples/archetypes/test-archetypes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ else
SCRIPT_PATH="${0}"
fi

# Current directory
# Directory this script resides in
MY_DIR=$(cd $(dirname -- "${SCRIPT_PATH}") ; pwd -P)
# Current directory
CURRENT_DIR=${PWD}

# cd to an innocuous directory since the archetypes will create
# a project here when we test it. See issue #64
TARGET_DIR=${MY_DIR}/target
mkdir -p ${TARGET_DIR}
cd ${TARGET_DIR}

${MY_DIR}/create-archetypes.sh

Expand Down Expand Up @@ -60,3 +68,11 @@ mvn archetype:generate -DinteractiveMode=false \

# build the generated project
mvn -f ${PWD}/quickstart-mp/pom.xml install

# Paranoia. Don't want to delete /!
if [ ! -z "${TARGET_DIR}" ]; then
rm -rf ${TARGET_DIR}/
fi

# cd back to original directory
cd ${CURRENT_DIR}

0 comments on commit f8fa04d

Please sign in to comment.