Skip to content

Commit

Permalink
[FLINK-33468][ci] Makes path to Maven wrapper absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
XComp committed Nov 7, 2023
1 parent 48c69fd commit f4ac167
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/ci/maven-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

CI_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# Utility for invoking Maven in CI
function run_mvn {
MVN_CMD="./mvnw"
# assuming ./tools/ci/ as the location and the Maven wrapper being located in the root directory
MVN_CMD="${CI_DIR}/../../mvnw"
if [[ "$M2_HOME" != "" ]]; then
MVN_CMD="${M2_HOME}/bin/mvn"
fi
Expand Down Expand Up @@ -79,8 +82,6 @@ function collect_coredumps {
}


CI_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

MAVEN_VERSION="3.8.6"
MAVEN_CACHE_DIR=${HOME}/maven_cache
MAVEN_VERSIONED_DIR=${MAVEN_CACHE_DIR}/apache-maven-${MAVEN_VERSION}
Expand Down

0 comments on commit f4ac167

Please sign in to comment.