LinuxCommandLibrary

mvn-install

builds the project and installs the artifact to the local Maven repository

TLDR

Install to local repository
$ mvn install
copy
Install skipping tests
$ mvn install -DskipTests
copy
Clean install
$ mvn clean install
copy
Install with profile
$ mvn install -P [profile]
copy

SYNOPSIS

mvn install [options]

DESCRIPTION

mvn install builds the project and installs the artifact to the local Maven repository (~/.m2/repository). Makes the artifact available for other local projects. Executes compile, test, package, and install phases.

PARAMETERS

-DskipTests

Skip test execution.
-P profile
Activate profile.
-o
Work offline.
-U
Force snapshot updates.
-T threads
Parallel builds.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard