Method 1 - Using Maven Deploy
Step 1: Modify the pom.xml with the following elements and replace "35.154.91.240:8081" with your active artifactory server.
central
ip-172-31-3-145.ap-south-1.compute.internal-releases
http://35.154.91.240:8081/artifactory/libs-release-local
snapshots
ip-172-31-3-145.ap-south-1.compute.internal-snapshots
http://35.154.91.240:8081/artifactory/libs-snapshot-local
Step 2: Modify setting.xml and add following inside <servers> elements
admin
admin123
central
Notes:
Make sure "id" should be same in both file such as "central".
Make sure the userid and password should be correct and has permission to upload the artifact in artifactory.
Step 3: Run the maven deploy commands.
> mvn deploy
Method 2: Deploying a Single Artifact
To deploy a single artifact, simply fill in the fields in the Deploy dialog and click "Deploy".
Method 3: Deploying According to Layout
The Deploy dialog displays the repository package type and layout configured. To deploy your package according to the configured layout, check Deploy According to Layout.
Artifactory displays entry fields corresponding to the layout tokens for you to fill in.
Method 4: Deploying Multiple Files
To deploy multiple files together, simple set the deploy Type to Multi, fill in the rest of the fields in the dialog and click "Deploy".
Reference
Deploying Artifacts
https://www.jfrog.com/confluence/display/RTF/Deploying+Artifacts
Artifactory REST API
https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API