You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2016/01/24 12:43:44 UTC
svn commit: r1726479 - in /maven/site/trunk/content/apt/guides: index.apt
mini/guide-bash-m2-completion.apt
Author: khmarbaise
Date: Sun Jan 24 11:43:44 2016
New Revision: 1726479
URL: http://svn.apache.org/viewvc?rev=1726479&view=rev
Log:
Changed reference to use Maven instead of Maven 2.
Added new reference to Maven Bash completion.
Modified:
maven/site/trunk/content/apt/guides/index.apt
maven/site/trunk/content/apt/guides/mini/guide-bash-m2-completion.apt
Modified: maven/site/trunk/content/apt/guides/index.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/index.apt?rev=1726479&r1=1726478&r2=1726479&view=diff
==============================================================================
--- maven/site/trunk/content/apt/guides/index.apt (original)
+++ maven/site/trunk/content/apt/guides/index.apt Sun Jan 24 11:43:44 2016
@@ -145,7 +145,7 @@ Documentation
** Maven Tools and IDE Integration
- * {{{./mini/guide-bash-m2-completion.html}Maven 2.x Auto-Completion Using BASH}}
+ * {{{./mini/guide-bash-m2-completion.html}Maven Auto-Completion Using BASH}}
* Development Guides
Modified: maven/site/trunk/content/apt/guides/mini/guide-bash-m2-completion.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/mini/guide-bash-m2-completion.apt?rev=1726479&r1=1726478&r2=1726479&view=diff
==============================================================================
--- maven/site/trunk/content/apt/guides/mini/guide-bash-m2-completion.apt (original)
+++ maven/site/trunk/content/apt/guides/mini/guide-bash-m2-completion.apt Sun Jan 24 11:43:44 2016
@@ -1,10 +1,11 @@
------
- Guide to Maven 2.x auto completion using BASH
+ Guide to Maven auto completion using BASH
------
Trygve Laugstol
Jason van Zyl
+ Karl Heinz Marbaise
------
- 2005-10-12
+ 2016-01-24
------
~~ Licensed to the Apache Software Foundation (ASF) under one
@@ -27,47 +28,10 @@
~~ NOTE: For help with the syntax of this file, see:
~~ http://maven.apache.org/doxia/references/apt-format.html
-Guide to Maven 2.x auto completion using BASH
+Guide to Maven auto completion using BASH
- First you must go to the following site to install the BASH programmable
- auto completion setup if your distro doesn't have it by default. I don't
- think many do so you'll need to go to the {{{http://www.caliban.org/bash/index.shtml#completion}Programmable Completion Website}}.
+ If you like having bash completion which i can recommend if you are working
+ with Maven on command line i would suggest to install
+ the following {{{https://github.com/juven/maven-bash-completion}Maven Bash Auto Completion}}
+ to fullfil you needs.
- Once you've setup your system for auto completion you need to take the
- following:
-
-+----+
-
-#!/bin/bash
-
-_m2_make_goals()
-{
- plugin=$1
- mojos=$2
- for mojo in $mojos
- do
- export goals="$goals $plugin:$mojo"
- done
-}
-
-_m2_complete()
-{
- local cur goals
-
- COMPREPLY=()
- cur=${COMP_WORDS[COMP_CWORD]}
- goals='clean compile test install package deploy site'
- goals=$goals _m2_make_goals "eclipse" "eclipse"
- goals=$goals _m2_make_goals "idea" "idea"
- goals=$goals _m2_make_goals "assembly" "assembly"
- goals=$goals _m2_make_goals "plexus" "app bundle-application bundle-runtime descriptor runtime service"
- cur=`echo $cur | sed 's/\\\\//g'`
- COMPREPLY=($(compgen -W "${goals}" ${cur} | sed 's/\\\\//g') )
-}
-
-complete -F _m2_complete -o filenames mvn
-
-+----+
-
- And place it in <<</etc/bash_completion.d/m2>>>. Once you've done that the
- next time you start up your BASH shell you will have m2 auto completion!