mvn deploy:deploy-file -DgroupId=<group-id> \
  -DartifactId=<artifact-id> \
  -Dversion=<version> \
  -Dpackaging=<type-of-packaging> \
  -Dfile=<path-to-file> \
  -DrepositoryId=<id-to-map-on-server-section-of-settings.xml> \
  -Durl=<url-of-the-repository-to-deploy>
  
Or setting up a Run Configuration in Eclipse as:

Main > Base directory: C:/path-to/project
Main > Goals: deploy:deploy-file

JRE > VM Arguments:
-DrepositoryId=nexus-snapshots 
-Dfile=./target/app-beans.jar 
-Durl=https://nexus.company.com/artifactory/PROJ-SNAPSHOT 
-DpomFile=./pom.xml