2017-11-29 11:35:48 +03:00
|
|
|
# mvn
|
|
|
|
|
|
|
|
> Runnign Apache Maven.
|
|
|
|
|
|
|
|
- Most common usage is to invoke a life cicle phase:
|
|
|
|
|
|
|
|
`mvn package`
|
|
|
|
`mvn install`
|
|
|
|
`mvn deploy`
|
|
|
|
|
|
|
|
- Invoke more that one phase with arguments:
|
|
|
|
|
|
|
|
`mvn clean -P a_profile package clean`
|
|
|
|
|
2017-11-29 11:42:02 +03:00
|
|
|
- Ouput all debug information:
|
|
|
|
|
|
|
|
`mvn -X clean -P a_profile package clean`
|
|
|
|
|
|
|
|
- Use an alternative pom o directory:
|
|
|
|
|
|
|
|
`mvn -f path/to/other/pom.xml clean`
|
|
|
|
|
2017-11-29 16:08:23 +03:00
|
|
|
- Run a spring boot project with remote debug:
|
2017-11-29 11:35:48 +03:00
|
|
|
|
|
|
|
`mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"`
|