How to deploy jar to maven repo using ssh

mvn deploy:deploy-file \
-DgroupId=xalan \
-DartifactId=xalan \
-Dversion=2.7.2 \
-Dpackaging=jar \
-Dfile=xalan-2.7.2.jar \
-DrepositoryId=maven-repo \
-Durl=scpexe://repo.com/data/html/repository/
  1. Make sure all the requirements of maven is well met by downloading all the necessary maven dependencies to maven lib folder