diff --git a/src/_mvn b/src/_mvn index 6f4b31c..c7922f5 100644 --- a/src/_mvn +++ b/src/_mvn @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for Maven (http://maven.apache.org). +# Completion script for Maven 3.8.6 (https://maven.apache.org/). # # Status: See FIXME and TODO tags. # @@ -80,9 +80,11 @@ _mvn() { "(- : *)"{-emp,--encrypt-master-password}'[encrypt master security password]:master password:_mvn_passwords' \ "(- : *)"{-ep,--encrypt-password}'[encrypt server password]:password:_mvn_passwords' \ "($excl_opts -B --batch-mode)"{-B,--batch-mode}'[run in non-interactive (batch) mode]' \ + "($excl_opts -b --builder)"{-b,--builder}'[The id of the build strategy to use]' \ "($excl_opts -V --show-version)"{-V,--show-version}'[display version information without stopping build]' \ "($excl_opts -q --quiet -X --debug)"{-q,--quiet}'[quiet output, only show errors]' \ "($excl_opts -X --debug -q --quiet)"{-X,--debug}'[produce execution debug output]' \ + "($excl_opts -llr --legacy-local-repository)"{-llr,--legacy-local-repository}'[Use Maven 2 Legacy Local Repository behaviour]' \ "($excl_opts -N --non-recursive)"{-N,--non-recursive}'[do not recurse into sub-projects]' \ "($excl_opts -C --strict-checksums -c --lax-checksums)"{-C,--strict-checksums}'[fail the build if checksums don'\''t match]' \ "($excl_opts -c --lax-checksums -C --strict-checksums)"{-c,--lax-checksums}'[warn if checksums don'\''t match]' \ @@ -90,6 +92,7 @@ _mvn() { "($excl_opts -f --file)"{-f,--file}'[force the use of an alternate POM file]:POM file:_mvn_pom_files' \ "($excl_opts -s --settings)"{-s,--settings}'[alternate path for the user settings file]:settings file:_mvn_settings_files' \ "($excl_opts -gs --global-settings)"{-gs,--global-settings}'[alternate path for the global settings file]:global settings file:_mvn_settings_files' \ + "($excl_opts -gt --global-toolchains)"{-gt,--global-toolchains}'[alternate path for the global toolchains file]:global toolchains file:_mvn_toolchains_files' \ "($excl_opts -fae --fail-at-end -ff --fail-fast -fn --fail-never)"{-fae,--fail-at-end}'[only fail the build afterwards, allow all non-impacted builds to continue]' \ "($excl_opts -ff --fail-fast -fae --fail-at-end -fn --fail-never)"{-ff,--fail-fast}'[stop at first failure in reactorized builds]' \ "($excl_opts -fn --fail-never -fae --fail-at-end -ff --fail-fast)"{-fn,--fail-never}'[never fail the build, regardless of project result]' \ @@ -99,6 +102,7 @@ _mvn() { "($excl_opts -o --offline -U --update-snapshots -cpu --check-plugin-updates -up --update-plugins)"{-o,--offline}'[work offline]' \ "($excl_opts -U --update-snapshots -nsu --no-snapshot-updates -o --offline)"{-U,--update-snapshots}'[force a check for updated releases and snapshots on remote repositories]' \ "($excl_opts -nsu --no-snapshot-updates -U --update-snapshots -o --offline)"{-nsu,--no-snapshot-updates}'[Suppress SNAPSHOT updates]' \ + "($excl_opts -ntp --no-transfer-progress)"{-ntp,--no-transfer-progress}'[Do not display transfer progress when downloading or uploading ]' \ "*"{-D-,--define}'[define a system property]:property:_mvn_properties' \ "${opts[@]}" \ "($excl_opts)*: :_mvn_args" @@ -288,7 +292,7 @@ _mvn_plugin_goals() { local ret=1 plugin="$@[-1]" update_policy zstyle -s ":completion:${curcontext}:" cache-policy update_policy - [[ -z "$update_policy" ]] && zstyle ":completion:${curcontext}:" cache-policy _mvn_goals_caching_policy + [[ -z "$update_policy" ]] && zstyle ":completion:${curcontext}:" cache-policy _mvn_goals_caching_policy unset _goals if ( [[ ${+_goals} -eq 0 ]] || _cache_invalid "mvn/plugins/${plugin}" ) && ! _retrieve_cache "mvn/plugins/${plugin}"; then @@ -580,7 +584,7 @@ _mvn_goals_caching_policy() { (( $+functions[_mvn_properties_caching_policy] )) || _mvn_properties_caching_policy() { - _mvn_goals_caching_policy + _mvn_goals_caching_policy } (( $+functions[_mvn_groupIds_caching_policy] )) || @@ -594,7 +598,7 @@ _mvn_profiles_caching_policy() { local cached_file="${1#$(__mvn_get_cache_dir)}" [[ -f $cached_file && $cached_file -nt "$1" ]] && return 0 - # Rebuild if cache is older than one week. + # Rebuild if cache is older than one week. local -a oldp oldp=( "$1"(Nmw+1) ) (( $#oldp )) && return 0