Deploy to artifactory using maven.


Add your repository server configuration to maven settings.xml

This needs to be done only once. If the repository is already configured in your user settings.xml, skip this step.

Add below configuration to your settings.xml

Below configuration can be obtained from your artifactory

      <password>{password/encrypted password}</password>

More info here

Add maven-deploy-plugin to your pom


More info http://maven.apache.org/plugins/maven-deploy-plugin/plugin-info.html

Add remote (artifactory) repository to your POM


More info at

Deploy Using Maven

Running below command would deploy it to the default repository

    mvn deploy

In case of multiple repositories in pom, specify repository id.

    mvn deploy -DrepositoryId

More info at http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

Kishore Chintoju

blog comments powered by Disqus