Maven 2.x and 3.x Site Plugin

Error when using an absolute URL in a menu item in site.xml

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: relative links
  • Labels:
    None
  • Number of attachments :
    0

Description

When defining the following menu item in site.xml, then the last menu item is not rendered properly as an absolute URL.
Its href is empty:

<menu name="Maven 2.0">
<item name="APT Format" href="format.html"/>
<item name="FAQ" href="faq.html"/>
<item name="Xdoc Example" href="xdoc.html"/>
<item name="Maven 2" href="http://maven.apache.org/maven2/"/>
</menu>

The problem seems to be rooted somewhere in $decoration.body.menus.

The problem does not occur for links!

Steps to reproduce:

  • Create a new maven project using the site Archetype.
  • Modify the menu section in the site.xml as shown above by adding an absolute URL.
  • run mvn clean
  • run mvn site

Check the absolute URL.

Issue Links

Activity

Hide
Dennis Lundberg added a comment -

This is the current behavior of the site-plugin.

Show
Dennis Lundberg added a comment - This is the current behavior of the site-plugin.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: