LinuxCommandLibrary

mvn-deploy

uploads artifacts to remote repository

TLDR

Deploy to repository

$ mvn deploy
copy
Deploy specific file
$ mvn deploy:deploy-file -Dfile=[file.jar] -DrepositoryId=[repo-id] -Durl=[repo-url]
copy
Deploy with specific profile
$ mvn deploy -P [profile-name]
copy
Skip tests and deploy
$ mvn deploy -DskipTests
copy
Deploy to snapshot repository
$ mvn deploy -DaltSnapshotDeploymentRepository=[id::url]
copy
Deploy single module
$ mvn deploy -pl [module-name]
copy

SYNOPSIS

mvn deploy [options]

DESCRIPTION

mvn deploy uploads artifacts to remote repository. It's the final Maven lifecycle phase.
The goal publishes built artifacts. Requires repository configuration in settings.xml.

PARAMETERS

-Dfile JAR

File to deploy.
-DrepositoryId ID
Repository identifier.
-Durl URL
Repository URL.
-P PROFILE
Activate profile.
-pl MODULE
Build specific module.
--help
Display help information.

CAVEATS

Requires repository access. Credentials in settings.xml. Network operation.

HISTORY

The deploy goal is part of Apache Maven's build lifecycle for artifact distribution.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community