Monday, September 6, 2010

Maven Repositories on GitHub

My blog has moved. You will be redirected automatically. Thanks. :)


Anonymous said...

Thank's a lot for the sh script!

Anonymous said...

Thanks for the informative blog!
You have also briefly mentioned about publishing the maven2 site. Do you have any instructions regarding that?


Christian Kaltepoth said...

Using the same approach for publishing a Maven site should be straight forward. Just use the same way to create a GH Pages branch in a separate directory (if you didn't do this already) and then add the path of this directory to the distributionManagement/site section of you pom (just like I did for the repository). Then you should be able to deploy the site using the well known Maven commands. After this step just push the GH Pages branch back to GitHub.

I hope this helps :)

Anonymous said...

It really worked!!! vielen Dank, Christian.

Michael Burton said...

You might be interested in the following solution, which does the same thing but automates the deployment as part of the regular "mvn deploy" stage of the build.

It also uses a branch called "mvn-repo" instead of "gh-pages", so it can coexist with projects that use github pages.

More details here: