Try out specifying bash in mvnw to make Jenkins happy
-#!/bin/sh
+#!/bin/bash
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
