HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mvn deploy — Add an artifact to a remote repository. More information: <https://manned.org/mvn>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandmvn deployartifactcliaddmoreremoterepository

Problem

How to use the mvn deploy command: Add an artifact to a remote repository. More information: <https://manned.org/mvn>.

Solution

mvn deploy — Add an artifact to a remote repository. More information: <https://manned.org/mvn>.

Copy the final artifact into the remote repository configured in the settings.xml file:
mvn deploy


Copy an artifact, that is not built using Maven to the remote repository:
mvn deploy:deploy-file {{[-D|--define]}} url={{URLOfTheRemoteRepository}} {{[-D|--define]}} repositoryId={{ServerIdFromSettingsXML}} {{[-D|--define]}} file={{FileToBeDeployed}}

Code Snippets

Copy the final artifact into the remote repository configured in the `settings.xml` file

mvn deploy

Copy an artifact, that is not built using Maven to the remote repository

mvn deploy:deploy-file {{[-D|--define]}} url={{URLOfTheRemoteRepository}} {{[-D|--define]}} repositoryId={{ServerIdFromSettingsXML}} {{[-D|--define]}} file={{FileToBeDeployed}}

Context

tldr-pages: common/mvn deploy

Revisions (0)

No revisions yet.