java - Maven site generation that shows sites of previous versions -


maven's site:site functionality gives me access reports on code , test quality current release, see previous releases comparisons determine improvements in areas like:

  • test coverage
  • issues
  • code complexity etc
  • documentation

without needing remember or keep notes.

i assume there's no maven reporting tool maintain sort of state in scm between releases, gathering metadata each report in pom , storing file. require every report make key data available during build using standardised mechanism.

one approach figured how apache of java projects, e.g. http://commons.apache.org/proper/commons-beanutils/javadocs/v1.9.2/apidocs/index.html version built site structure.

when generating site, designate url project, following:

<project>   ...   <distributionmanagement>     <site>       <id>www.yourcompany.com</id>       <url>scp://www.yourcompany.com/www/docs/project/</url>     </site>   </distributionmanagement>   ... </project> 

if parameterize project url include unique value in path (like timestamp, build number, etc.) site generated using unique path in each run:

<project>   ...   <distributionmanagement>     <site>       <id>www.yourcompany.com</id>       <url>scp://www.yourcompany.com/www/docs/project/${build_number}</url>     </site>   </distributionmanagement>   ... </project> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -