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
Written by Raúl Raja
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Maven
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#