Deploy Maven artifacts to Artifactory by adding the following deployment element to the pom.xml file of your Maven project with the target local repository URL that you want to deploy your artifacts to.
<distributionManagement>
<repository>
<id>central</id>
<name><user_defined_name></name>
<url>https://<MY_JFROG_DOMAIN>/artifactory/<MY_MAVEN_REPO></url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name><what name should they put here></name>
<url>https://<MY_JFROG_DOMAIN>/artifactory/<MY_MAVEN_REPO></url>
</snapshotRepository>
</distributionManagement>In the code snippet above, replace the following placeholders as follows:
<user_defined_name>: Enter here a name or description that will help you identify your repository. It can be any name; it does not have to be the actual repository name and is for your identification purposes only.
<MY_JFROG_DOMAIN>: Enter here the name of your Artifactory domain.
<MY_MAVEN_REPO>: Enter here the name of the Maven local repository that you are connecting to Artifactory.