mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Maven profiles for current pom.xml file
This commit is contained in:
parent
5728a5608d
commit
d78f1766b0
1 changed files with 4 additions and 1 deletions
|
|
@ -168,12 +168,15 @@ function listMavenCompletions {
|
||||||
-Dmaven.test.skip=true -DskipTests -Dmaven.surefire.debug -DenableCiProfile -Dpmd.skip=true -Dcheckstyle.skip=true -Dtycho.mode=maven
|
-Dmaven.test.skip=true -DskipTests -Dmaven.surefire.debug -DenableCiProfile -Dpmd.skip=true -Dcheckstyle.skip=true -Dtycho.mode=maven
|
||||||
|
|
||||||
# arguments
|
# arguments
|
||||||
-am -amd -B -C -c -cpu -D -e -emp -ep -f -fae -ff -fn -gs -h -l -N -npr -npu -nsu -o -P -pl -q -rf -s -T -t -U -up -V -v -X
|
-am -amd -B -C -c -cpu -D -e -emp -ep -f -fae -ff -fn -gs -h -l -N -npr -npu -nsu -o -pl -q -rf -s -T -t -U -up -V -v -X
|
||||||
|
|
||||||
cli:execute cli:execute-phase
|
cli:execute cli:execute-phase
|
||||||
archetype:generate generate-sources
|
archetype:generate generate-sources
|
||||||
cobertura:cobertura
|
cobertura:cobertura
|
||||||
-Dtest= `if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi`
|
-Dtest= `if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi`
|
||||||
|
-P `[ -e "pom.xml" ] && grep -e "<profile>" -A 1 "pom.xml" | grep -e "<id>.*</id>" | sed 's?.*<id>\(.*\)<\/id>.*?-P\1?'`
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue