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/18 08:29] – [Show full pom] odefta | maven:commands [2025/02/03 10: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=" | 
| - |    | + |    | 
| + | |||
| + | ====== 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 ====== | ||
| Line 26: | 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 ====== | ||
| - |   mvn deploy: | + |   mvn deploy: | 
| + |    | ||
|    |    | ||
| ====== Get dependency tree ====== | ====== Get dependency tree ====== | ||
| Line 41: | Line 74: | ||
| ====== Remote debug single test class ====== | ====== Remote debug single test class ====== | ||
| - |   mvn -Dmaven.surefire.debug=" | + |   mvn -Dmaven.surefire.debug=" | 
| + |    | ||
| + | |||
| + | ====== 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.1531902574.txt.gz · Last modified:  (external edit)
                
                