开发者

Maven Project - github

开发者 https://www.devze.com 2023-01-07 23:11 出处:网络
Is it possible to publish your site reports to github?For instance, 开发者_如何学GoI run Checkstyle, Findbugs, Cross Reference, and other plugins and would like to have that publicly available.Since m

Is it possible to publish your site reports to github? For instance, 开发者_如何学GoI run Checkstyle, Findbugs, Cross Reference, and other plugins and would like to have that publicly available. Since my project is already there, I'd like to just keep it there.


With the state of the plugins that exist now, you'd have to do some shimming. The site command (per your comments: wanting to use mvn:site) has a mechanism (stage) for pushing the resulting site somewhere, but it's all mostly predicated on SCP'ing it around to some final destination. For github, I don't think there's any obvious place to land things like that.

The solution would be to write something that extended the site plugin to check in the results to Github using the github pages functionality. Details on the github pages bits are available at http://pages.github.com/. To get there, you'll be writing something that checks in your resulting site to a root branch "gh-pages" and going from there.


There are maven github plugins wich works fine for me.

feature:

  • deploy artifacts
  • download artifacts
  • deploy site to gh-pages

See: https://github.com/github/maven-plugins and fork the example project at https://github.com/kevinsawicki/github-maven-example to try out.


The Maven way to publish your reports would be to build the Maven site and to deploy it using FTP, SCP or DAV.

I don't know if GitHub provides hosting space and supports any of this protocol. If it does, then the following resources will help:

  • Deploying a Site in the site plugin Usage page
  • 10.6. Deploying Your Project Website
  • Maven 2: Getting "mvn site:deploy" to work
  • Releasing Maven projects to Github
  • Site Distribution in the POM Reference

If it doesn't, better look for another place to host your site.


I'm using this plugin for that: http://synergian.github.com/wagon-git/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号