Skip to content

Commit 9b5333e

Browse files
committed
order by plugin prefix
1 parent bfe5a5d commit 9b5333e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ _mvn()
169169
local plugin_goals_properties="properties:read-project-properties|properties:write-project-properties|properties:write-active-profile-properties|properties:set-system-properties"
170170
local plugin_goals_release="release:clean|release:prepare|release:rollback|release:perform|release:stage|release:branch|release:update-versions"
171171
local plugin_goals_repository="repository:bundle-create|repository:bundle-pack|repository:help"
172+
local plugin_goals_scala="scala:add-source|scala:cc|scala:cctest|scala:compile|scala:console|scala:doc|scala:doc-jar|scala:help|scala:run|scala:script|scala:testCompile"
172173
local plugin_goals_scm="scm:add|scm:checkin|scm:checkout|scm:update|scm:status"
173174
local plugin_goals_site="site:site|site:deploy|site:run|site:stage|site:stage-deploy"
174175
local plugin_goals_sonar="sonar:sonar|sonar:help"
@@ -184,7 +185,6 @@ _mvn()
184185
local plugin_goals_spring_boot="spring-boot:run|spring-boot:repackage"
185186
local plugin_goals_jgitflow="jgitflow:feature-start|jgitflow:feature-finish|jgitflow:release-start|jgitflow:release-finish|jgitflow:hotfix-start|jgitflow:hotfix-finish|jgitflow:build-number"
186187
local plugin_goals_wildfly="wildfly:add-resource|wildfly:deploy|wildfly:deploy-only|wildfly:deploy-artifact|wildfly:redeploy|wildfly:redeploy-only|wildfly:undeploy|wildfly:undeploy-artifact|wildfly:run|wildfly:start|wildfly:shutdown|wildfly:execute-commands"
187-
local plugin_goals_scala="scala:add-source|scala:cc|scala:cctest|scala:compile|scala:console|scala:doc|scala:doc-jar|scala:help|scala:run|scala:script|scala:testCompile"
188188

189189
## some plugin (like jboss-as) has '-' which is not allowed in shell var name, to use '_' then replace
190190
local common_plugins=`compgen -v | grep "^plugin_goals_.*" | sed 's/plugin_goals_//g' | tr '_' '-' | tr '\n' '|'`

0 commit comments

Comments
 (0)