This repo is based on this article with the addition of generating indexes.
-
Check out this repository into a directory that you will have to specify when you deploy
$ git clone [email protected]:NitorCreations/maven-repository.git
-
Deploy your artifact with the checked out repo as altDeploymentRepository
$ cd your-project; mvn -DaltDeploymentRepository=releases::default::file:../maven-repository/releases clean deploy
-
Regenerate the index
$ cd ../maven-repository/.index; mvn install; mvn clean
-
Git-add new stuff and commit
$ cd ..; git add .; git commit -m "Added vX.Y of your-project"; git push
Add the following section under /settings/profiles/profile/repositories in your .m2/settings.xml
<repository>
<id>nitor-github</id>
<url>https://raw.github.com/NitorCreations/maven-repository/master/releases</url>
</repository>