Apache Maven Bash Completion Support

Gobinath Loganathan
Cognitio
Published in
1 min readMay 26, 2016

Are you a power user of Apache Maven? Then this is for you. Today, I found a nice trick to enable bash completion for mvn command line tool. If you don’t have any idea about bash completion, open your Terminal, type git ( With an assumption that you have git ;-) ) and hit the tab two times. You will see a list of all the possible commands following git.

This is what you have to do: Open your Terminal, enter the following command and hit the enter.

sudo wget https://raw.github.com/dimaj/maven-bash-completion/master/bash_completion.bash --output-document /etc/bash_completion.d/mvn

Even though it is not a perfect completion (but supports all the basic commands), it is far better than having nothing.

Credits to Juven Xu: maven-bash-completion

--

--