maven:commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
maven:commands [2018/03/07 03:51] – [Deploy to repository] odefta | maven:commands [2019/05/22 19:13] – odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Set Java version source and target ====== | ||
+ | |||
+ | < | ||
+ | [...] | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | [...] | ||
+ | </ | ||
+ | |||
====== Run a single test class ====== | ====== Run a single test class ====== | ||
Line 9: | Line 20: | ||
====== Execute a Java class ====== | ====== Execute a Java class ====== | ||
- | 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=" |
- | | + | |
+ | |||
+ | ====== Remote debug integration (failsafe plugin) tests ====== | ||
+ | |||
+ | | ||
+ | -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 ====== | ||
- | mvn **--settings D:/ | + | mvn --settings D:/ |
====== Specify local repository ====== | ====== Specify local repository ====== | ||
- | mvn clean install -DskipTests | + | mvn clean install -DskipTests -Dmaven.repo.local=D:/ |
| | ||
====== Deploy to local repository ====== | ====== Deploy to local repository ====== | ||
Line 27: | Line 51: | ||
mvn --settings D:/ | mvn --settings D:/ | ||
- | ====== | + | ====== |
+ | |||
+ | mvn deploy | ||
+ | |||
+ | ====== Deploy to default repository with sources and java doc ====== | ||
+ | |||
+ | mvn clean javadoc:jar source:jar deploy | ||
+ | |||
+ | ====== Deploy | ||
+ | |||
+ | mvn deploy: | ||
+ | -Dfile=ojdbc8.jar -DgeneratePom=true -DrepositoryId=internal -Durl=https:// | ||
+ | |||
+ | ====== Get dependency tree ====== | ||
+ | |||
+ | mvn dependency: | ||
+ | |||
+ | ====== Show full pom ====== | ||
+ | |||
+ | mvn help: | ||
+ | |||
+ | ====== Remote debug single test class ====== | ||
+ | |||
+ | mvn -Dmaven.surefire.debug=" | ||
+ | -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 deploy: | + | mvn clean install |
maven/commands.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1