Maven 2 & 3

Maven Integration with Bash

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: 2.0.9
  • Fix Version/s: Documentation Deficit
  • Component/s: Documentation: Guides
  • Labels:
    None
  • Environment:
    POSIX (e.g. Linux, FreeBSD)
  • Complexity:
    Intermediate
  • Number of attachments :
    1

Description

Maven already has a mini guide on this located here: http://maven.apache.org/guides/mini/guide-bash-m2-completion.html

However, I have significantly enhanced the bash completion for Maven using mostly automated means. Please review the attached m2 script and if it is found to be a worthy update, then simply use the contents of the script as a drop in replacement for the current one.

Thanks!

Activity

Hide
Brett Porter added a comment -

can you explain a bit more how to use this? it seems like calling the "update" only updates it for the current shell?

Show
Brett Porter added a comment - can you explain a bit more how to use this? it seems like calling the "update" only updates it for the current shell?
Hide
jieryn added a comment -

A discussion on the internals of Bash's auto complete support is beyond my skills. I merely want to enhance the current http://maven.apache.org/guides/mini/guide-bash-m2-completion.html documentation to use the attached m2 script. The script has several advantages over its predecessor, namely that it helps automate the tedious process of figuring out all of the Maven plugins to possibly auto-complete, including their goals.

jieryn ~$ mvn help:eff<tab><tab>
help:effective-pom help:effective-settings

Where the help plugin was discovered automatically, as well as all the goals for that plugin. Allowing me to type just a partial match for both the plugin and the goal, letting Bash do the hard work.

Show
jieryn added a comment - A discussion on the internals of Bash's auto complete support is beyond my skills. I merely want to enhance the current http://maven.apache.org/guides/mini/guide-bash-m2-completion.html documentation to use the attached m2 script. The script has several advantages over its predecessor, namely that it helps automate the tedious process of figuring out all of the Maven plugins to possibly auto-complete, including their goals. jieryn ~$ mvn help:eff<tab><tab> help:effective-pom help:effective-settings Where the help plugin was discovered automatically, as well as all the goals for that plugin. Allowing me to type just a partial match for both the plugin and the goal, letting Bash do the hard work.

People

  • Assignee:
    Unassigned
    Reporter:
    jieryn
Vote (3)
Watch (4)

Dates

  • Created:
    Updated: