Maven Install

In Case you do not have a perticular Library in you maven repository the command to install is as foll:
mvn install:install-file \n
-DgroupId=<group Id> \n
-DartifactId=<artifact Id> \n
-Dversion=<version> \n
-Dpackaging=<jar|war|ear> \n
-Dfile=/path/to/file

Example:

mvn install:install-file -DgroupId=apache-discovery -DartifactId=commons-discovery -Dversion=0.2 -Dpackaging=jar -Dfile=/path/to/file