mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 13:45:20 +00:00
26 lines
490 B
Plaintext
26 lines
490 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mvn compile
|
|
|
|
> Compile a Maven project's source code.
|
|
> More information: <https://manned.org/mvn>.
|
|
|
|
- Compile the project's source code:
|
|
|
|
`mvn compile`
|
|
|
|
- Clean compiled files and recompile:
|
|
|
|
`mvn clean compile`
|
|
|
|
- Compile a specific module in a multi-module project:
|
|
|
|
`mvn compile {{[-pl|--projects]}} {{module_name}}`
|
|
|
|
- Skip tests while compiling:
|
|
|
|
`mvn compile {{[-D|--define]}} skipTests`
|