Created
April 20, 2019 14:51
-
-
Save sleclercq/2d5a17280b2029b37c9015cd55f48cc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calls ./mvnw if found, otherwise execute the original mvn | |
mvn-or-mvnw() { | |
if [ -x ./mvnw ]; then | |
echo "executing mvnw instead of mvn" | |
./mvnw "$@" | |
else | |
command mvn "$@" | |
fi | |
} | |
# either use orignal mvn or the mvn wrapper | |
alias mvn="mvn-or-mvnw" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment