maven:commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
maven:commands [2018/07/26 11:21] – [Remote debug single test class] odefta | maven:commands [2025/02/03 12:05] (current) – odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Set Java version source and target ====== | ||
+ | |||
+ | < | ||
+ | [...] | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | [...] | ||
+ | </ | ||
+ | |||
====== Run a single test class ====== | ====== Run a single test class ====== | ||
Line 11: | Line 22: | ||
mvn exec:java -Dexec.mainClass=" | mvn exec:java -Dexec.mainClass=" | ||
| | ||
- | ====== Remote debug tests ====== | + | ====== Remote debug unit (surefire plugin) |
mvn -Dmaven.surefire.debug=" | mvn -Dmaven.surefire.debug=" | ||
-Djava.compiler=NONE" | -Djava.compiler=NONE" | ||
- | | + | |
+ | ====== Remote debug integration (failsafe plugin) tests ====== | ||
+ | |||
+ | mvn -Dmaven.failsafe.debug=" | ||
+ | -Djava.compiler=NONE" | ||
+ | |||
+ | ====== Remote debug single integration (failsafe plugin) test ====== | ||
+ | |||
+ | mvn -o verify -Dit.test=DataflowDeploymenFTPIT# | ||
+ | -Dmaven.failsafe.debug | ||
+ | ====== Remote debug integration (failsafe plugin) tests on default 5005 port ====== | ||
+ | |||
+ | mvn -Dmaven.failsafe.debug verify | ||
====== Use specified settings file ====== | ====== Use specified settings file ====== | ||
Line 27: | Line 50: | ||
mvn --settings D:/ | mvn --settings D:/ | ||
+ | |||
+ | ====== Deploy to default repository ====== | ||
+ | |||
+ | mvn deploy | ||
+ | |||
+ | ====== Deploy to default repository with sources and java doc ====== | ||
+ | |||
+ | mvn clean javadoc:jar source:jar deploy | ||
====== Deploy third party jar in remote repository ====== | ====== Deploy third party jar in remote repository ====== | ||
Line 45: | Line 76: | ||
mvn -Dmaven.surefire.debug=" | mvn -Dmaven.surefire.debug=" | ||
-Djava.compiler=NONE" | -Djava.compiler=NONE" | ||
+ | |||
+ | ====== Download sources ====== | ||
+ | |||
+ | mvn dependency: | ||
+ | |||
+ | ====== Download java doc ====== | ||
+ | |||
+ | mvn dependency: | ||
+ | |||
+ | ====== Force update snapshots dependencies ====== | ||
+ | |||
+ | mvn -U clean install | ||
+ | | ||
+ | ====== Force update all dependencies ====== | ||
+ | |||
+ | mvn dependency: | ||
+ | | ||
+ | ====== Deactivate (exclude) a profile from command line ====== | ||
+ | |||
+ | mvn clean install -P !sign | ||
+ | |||
+ | ====== Build only the parent pom (not the children modules) ====== | ||
+ | |||
+ | mvn clean install -N | ||
maven/commands.1532593294.txt.gz · Last modified: 2023/07/04 19:36 (external edit)