-
-
Save juergenhoetzel/835002 to your computer and use it in GitHub Desktop.
Wrapper around original "mvn" Maven executable so you can trigger Maven goals from a subdir
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
#!/bin/bash | |
ORIG_MVN=/opt/maven/bin/mvn | |
while [ ! -r "pom.xml" ] && [ "$PWD" != "/" ] | |
do | |
cd .. | |
done | |
if [ -r "pom.xml" ]; then | |
exec ${ORIG_MVN} "$@" | |
else | |
echo "No pom.xml" >&2 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment