LinuxCommandLibrary

mvn-package

builds the project and creates a distributable package

TLDR

Build package

$ mvn package
copy
Build skipping tests
$ mvn package -DskipTests
copy
Build with profile
$ mvn package -P [production]
copy
Build clean package
$ mvn clean package
copy

SYNOPSIS

mvn package [options]

DESCRIPTION

mvn package builds the project and creates a distributable package (JAR, WAR, etc.). Executes compile, test, and package phases. Output goes to target/ directory.

PARAMETERS

-DskipTests

Skip test execution.
-Dmaven.test.skip
Skip test compilation and execution.
-P profile
Activate profile.
-o
Work offline.
-T threads
Parallel builds.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community