tldr/pages/common/mvn.md

24 lines
551 B
Markdown
Raw Normal View History

2017-11-29 08:35:48 +00:00
# mvn
2017-12-01 11:00:44 +00:00
> Apache Maven. A build automation tool used for JVM environment projects.
2017-11-29 08:35:48 +00:00
- Most common usage is to invoke a life cicle phase:
`mvn package`
- Invoke more that one phase with arguments:
`mvn clean -P a_profile package clean`
2017-11-29 08:42:02 +00: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 13:08:23 +00:00
- Run a spring boot project with remote debug:
2017-11-29 08:35:48 +00:00
`mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"`