Add this in your pom.xml
file:
<repositories>
<repository>
<id>ekito-public-snapshots</id>
<url>https://raw.github.com/Ekito/maven-repo/master/snapshots</url>
</repository>
<repository>
<id>ekito-public-releases</id>
<url>https://raw.github.com/Ekito/maven-repo/master/releases</url>
</repository>
</repositories>
Add this in the pom.xml
of the artifact to be deployed:
<distributionManagement>
<repository>
<id>repo</id>
<url>https://raw.github.com/Ekito/maven-repo/master/releases</url>
</repository>
<snapshotRepository>
<id>snapshot-repo</id>
<url>https://raw.github.com/Ekito/maven-repo/master/snapshots</url>
</snapshotRepository>
</distributionManagement>
Clone the git repository locally :
$> git clone git
github.com:Ekito/maven-repo.git
Then deploy the files in your local repo (beware if it is a release or a snapshot !!!):
$> mvn -DaltDeploymentRepository=snapshot-repo::default::file:PATH_TO/maven-repo/snapshots/ clean deploy
And commit and push your changes to github:
$> git commit -m "MESSAGE"
$> git push origin master
Thanks to Cemerick for setting up this Maven repository.