How to install a JAR in the Maven local repository ?

To install a JAR in the Maven local repository  execute below command in cmd/terminal:

mvn install:install-file \
   -Dfile=/filepath/filename.jar \
   -DgroupId=com.pb \
   -DartifactId=event \
   -Dversion=0.0.1-SNAPSHOT \
   -Dpackaging=jar \
   -DgeneratePom=true