You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/06/10 18:08:22 UTC

[maven-integration-testing] 01/01: [MNG-6939] ITs fail when MAVENCODEBASE is relative

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MNG-6939
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit c7f861b30bf49810e004ea07336510f18181f40f
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Wed Jun 10 20:08:00 2020 +0200

    [MNG-6939] ITs fail when MAVENCODEBASE is relative
---
 run-its.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/run-its.sh b/run-its.sh
index 39c6123..dd5b197 100755
--- a/run-its.sh
+++ b/run-its.sh
@@ -25,6 +25,10 @@
 if [ -z "$MAVENCODEBASE" ] ; then
  echo Please export MAVENCODEBASE
 else
+ case "$MAVENCODEBASE" in
+  /*) ;;
+  *) MAVENCODEBASE="$PWD/$MAVENCODEBASE" ;;
+ esac
  mvn verify -P versionlessMavenDist -f "$MAVENCODEBASE"
  mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo  -DmavenDistro="$MAVENCODEBASE/apache-maven/target/apache-maven-bin.zip" -DwrapperDistroDir="$MAVENCODEBASE/apache-maven/target" -DmavenWrapper="$MAVENCODEBASE/maven-wrapper/target/maven-wrapper.jar"
 fi