Maven 1.x Changelog Plugin
  1. Maven 1.x Changelog Plugin
  2. MPCHANGELOG-74

changelog plugin creates wrong links for Subversion repositories

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.9
    • Labels:
      None
    • Number of attachments :
      1

      Description

      The maven file-activity plugin creates wrong links at docs/file-activity-report.html.

      project.xml

      <repository>
      <connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH</connection>
      <developerConnection>scm:svn:https://svn.apache.org/repos/asf/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH</developerConnection>
      <url>http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/</url>
      </repository>

      results in the attached changelog-report.html file where the links into the SCM look like this:

      http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH//jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/project.xml

      1. changelog-report.html
        9 kB
        Henning Schmiedehausen

        Issue Links

          Activity

          Hide
          Niall Pemberton added a comment -

          A workaround for this issue is to set the repository url to the root ASF one - that causes changelog to generate "good links":

          <repository>
          <connection>....</connection>
          <developerConnection>.... </developerConnection>
          <url>http://svn.apache.org/viewcvs.cgi</url>
          </repository>

          The only problem then is the link on the generated "Source Repository" page just points to the whole of ASF, rather than your particular project. You can get round this by including a custom "cvs-usage.xml" document in the "xdocs" directory.

          Just out of interest the "change log" report for the maven-changelog-plugin is also currently suffering from this issue:

          http://maven.apache.org/reference/plugins/changelog/changelog-report.html

          Show
          Niall Pemberton added a comment - A workaround for this issue is to set the repository url to the root ASF one - that causes changelog to generate "good links": <repository> <connection>....</connection> <developerConnection>.... </developerConnection> <url> http://svn.apache.org/viewcvs.cgi </url> </repository> The only problem then is the link on the generated "Source Repository" page just points to the whole of ASF, rather than your particular project. You can get round this by including a custom "cvs-usage.xml" document in the "xdocs" directory. Just out of interest the "change log" report for the maven-changelog-plugin is also currently suffering from this issue: http://maven.apache.org/reference/plugins/changelog/changelog-report.html
          Hide
          Julian Wood added a comment -

          Unfortunately I posted my report in the wrong area, but there is a patch there which deals with the problem of using the same URL for the source repository report and for the generation of links in the changelog and file activity reports.

          Show
          Julian Wood added a comment - Unfortunately I posted my report in the wrong area, but there is a patch there which deals with the problem of using the same URL for the source repository report and for the generation of links in the changelog and file activity reports.
          Hide
          Lukas Theussl added a comment -

          Introduced a maven.changelog.svn.baseurl property.

          Show
          Lukas Theussl added a comment - Introduced a maven.changelog.svn.baseurl property.

            People

            • Assignee:
              Unassigned
              Reporter:
              Henning Schmiedehausen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: