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

@ -40,6 +40,9 @@ mvn-color()
) )
} }
# 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. # Override the mvn command with the colorized one.
#alias mvn="mvn-color" #alias mvn="mvn-color"