Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-646

Brackets not working when generating links using site plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      This was discovered together with Simone Tripodi when dealing with the Apache Commons Functor project (http://commons.apache.org/functor/): I've put together the attached file which include some links to the javadoc section of the site (generated using maven site plugin).
      Some links are links to the classes/interfaces or packages – and these work. Example:

       <a href="apidocs/org/apache/commons/functor/aggregator/ArrayListBackedAggregator.html">ArrayListBackedAggregator</a>
      

      However, where the link is meant to be a link to the method javadoc directly, and as such it includes brackets, the brackets are lost it the process of generating the html. Example:

      <a href="apidocs/org/apache/commons/functor/aggregator/AbstractListBackedAggregator.html#createList()">createList()</a>
      

      generates (you can see this on the live site here http://commons.apache.org/functor/aggregator.html):

      <a href="apidocs/org/apache/commons/functor/aggregator/AbstractListBackedAggregator.html#createList">createList()</a>
      

      Same happens if the method has parameters:

      <a href="apidocs/org/apache/commons/functor/aggregator/Aggregator.html#add(T)">add()</a>
      

      generates

      <a href="apidocs/org/apache/commons/functor/aggregator/Aggregator.html#addT">add()</a>
      

      I am attaching the original xml file to this. I use a Mac but I believe Simo uses a Linux – so it's not something to do with encoding I don't think. (As a side note we have actually changed various encoding settings to get the same result.)

      Please let me know if there is anything else we need to provide you with.
      Kind regards,

      Liv

      Attachments

        1. aggregator.xml
          17 kB
          Liviu Tudor

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liviutudor Liviu Tudor
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: