mvn install:install-file -Dfile=<file-path> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=jar
cp -r <home>/.m2/repository/<group-id> <group-id>/
git add .
git commit -m "new library"
git push origin mvn-repo
<repositories>
<repository>
<id>external-libs</id>
<url>https://raw.github.com/cbadenes/external-libs/mvn-repo/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
That's all!!