commands.sh

mvn deploy

all

Add an artifact to a remote repository.

More info →

Options (1)

-D, --defineboolean

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

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

Examples (2)

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

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
made by @shridhargupta | data from tldr-pages