Enable running maven from a project's subdirectory

This commit is contained in:
Bryan Banz 2014-10-22 12:09:53 -05:00
commit 77c8d5c99e

View file

@ -39,7 +39,10 @@ mvn-color()
echo -ne ${RESET_FORMATTING}
)
}
# Run mvn against the pom found in a project's root directory (assumes a git repo)
alias mvn!='mvn -f $(git rev-parse --show-toplevel || echo ".")/pom.xml'
# Override the mvn command with the colorized one.
#alias mvn="mvn-color"