mvn.plugin.zsh 809 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# aliases
alias mvncie='mvn clean install eclipse:eclipse'
alias mvnci='mvn clean install'
alias mvne='mvn eclipse:eclipse'
alias mvnce='mvn clean eclipse:clean eclipse:eclipse'
alias mvnd='mvn deploy'
alias mvnp='mvn package'
alias mvnc='mvn clean'
alias mvncom='mvn compile'
alias mvnt='mvn test'
alias mvnag='mvn archetype:generate'

Fredrik Appelberg's avatar
Fredrik Appelberg committed
13
14
function listMavenCompletions { 
	 reply=(
Fredrik Appelberg's avatar
Fredrik Appelberg committed
15
		cli:execute cli:execute-phase archetype:generate generate-sources compile clean install test test-compile deploy package cobertura:cobertura jetty:run gwt:run gwt:debug -DskipTests -Dmaven.test.skip=true -DarchetypeCatalog=http://tapestry.formos.com/maven-snapshot-repository -Dtest= `if [ -d ./src ] ; then find ./src -type f | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi`); 
Fredrik Appelberg's avatar
Fredrik Appelberg committed
16
17
}

18
compctl -K listMavenCompletions mvn