Configuring Deployment

Skip to end of metadata
Go to start of metadata
Table of Contents

Setting Up a Deployment Descriptor

In order to deploy to Artifactory you need to add a deployment descriptor to your POM with the URL of a target local repository to deploy to. This is standard Maven practice.
Artifactory can make the process a bit easier by providing you the "Distribution Management" snippet when selecting a local repository in the tree view (Browse:Tree Browser).

Remember that Virtual Repositories are, well... virtual. They cannot be deployed to or used inside a deployment descriptor.

Setting Up Security

For deploying, unless anonymous deployments are allowed on the target local repository (which is unlikely), you will also have to make sure your settings.xml file contains a server definition with the repository id used in the distributionManagement and with a valid deployer user name and password.
Artifactory offers a unique feature that makes sure you do not have to use clear text passwords in your settings, so it is highly recommended to use this feature.

Watch the Screencast

Labels: