Last Updated: February 25, 2016
·
1.938K
· raulraja

Deploy any maven project to your company repository

Sometimes maven open source projects are not available in Maven Central and you just want to build a patched project and simply add it to your maven repo. To skip the project's <distributionManagement /> section simply execute this handy command to deploy a project to your personal repository.

mvn clean install deploy -DaltDeploymentRepository=[repository]::[layout]::[url]

For example

mvn clean install deploy -DaltDeploymentRepository=internal-company-repo::default::scp://user@server/repo