mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
495 B
Plaintext
22 lines
495 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mvn package
|
|
|
|
> Package the compiled code of a Maven project into its distributable format (such as a JAR or WAR).
|
|
> More information: <https://manned.org/mvn>.
|
|
|
|
- Package a project:
|
|
|
|
`mvn package`
|
|
|
|
- Package a project while skipping test execution:
|
|
|
|
`mvn package {{[-D|--define]}} skipTests`
|
|
|
|
- Package a project and force Maven to update all dependencies:
|
|
|
|
`mvn package {{[-U|--update-snapshots]}}`
|