Coach Thrasher
Extendable Maven-BASH Auto Completion
I was so excited about using Maven with bash_completion, I decided to fix it, and add more commands. Now you can support any Maven commands, or plugin commands, including Java "-D" style properties, by appending them to the command set file. You don't need to know BASH shell to make the changes.
Download mvn_completion.zip to get the files, with instructions. It's a 5 minute install.
It really helps with typing long Maven commands, and to jog your memory about what the command options are, with just the [TAB] key.
Something like this:
mvn -Ds[TAB] cl[TAB] co[TAB] int[TAB] ins[TAB] site\:s[TAB] site\:d[TAB]
becomes:
mvn -Dsurefire.useFile=false clean compile integration-test deploy install site\:site site\:deploy
Not sure which hibernate3 goal to run? Just double-tab it ([TAB][TAB]), and all of the options will print out:
$>mvn hibernate3\:[TAB][TAB]
hibernate3:hbm2cfgxml
hibernate3:hbm2ddl
hibernate3:hbm2doc
hibernate3:hbm2hbmxml
hibernate3:hbm2java
hibernate3:schema-export
hibernate3:schema-update
Thanks to Apache for supporting Maven: it rocks.
Posted at 05:53PM May 28, 2007 by jason in Software |