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.
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: http://stackoverflow.com/a/14013645/82156
5 comments:
Thank's a lot for the sh script!
Thanks for the informative blog!
You have also briefly mentioned about publishing the maven2 site. Do you have any instructions regarding that?
Cheers
Shiraz
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 :)
It really worked!!! vielen Dank, Christian.
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: http://stackoverflow.com/a/14013645/82156
Post a Comment