开发者

Maven 2.2 site description xml tags

开发者 https://www.devze.com 2023-03-25 11:31 出处:网络
I\'ve tried to find what attributes can take the \'menu\' xml-tag. The problem: I want to show the reports like javadoc, findbugs, tests, clover/cobertura, etc.

I've tried to find what attributes can take the 'menu' xml-tag.

The problem: I want to show the reports like javadoc, findbugs, tests, clover/cobertura, etc. I use the following site descriptor (site.xml开发者_运维问答)

<project>
  <bannerLeft>
  <name>API</name>
  </bannerLeft>
  <body>    
    <menu name="Project">
      <item name="Purpose" href="/purpose.html"/>      
    </menu> 
    <menu name="Reports"/>
      ${reports}
  </body>
</project>

The wanted reports are in the correponding pom.

Any advice?

Thank you in advance Manel


Try using:

<menu ref="reports"/>

instead of:

<menu name="Reports"/>
  ${reports}

The <menu ref="reports"/> element will be replaced by a menu with links to all the generated reports for your project. Take a look at the Maven: Creating a site guide for more information.

Also, if you want to see what elements/attributes are allowed in site.xml check out the XML Schema which is published at http://maven.apache.org/xsd/decoration-1.0.0.xsd. There is an XML Schema Reference for the site descriptor available too.

0

精彩评论

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