Modifying SCM Links

The plugin normally works out of the box with the most popular web frontends for SCM systems. If for some reason the links to the web frontend for your SCM system are not correct, you can tweak the links by configuring the plugin properly. This is done with the <displayFileDetailUrl> element.

To your aid you have a special token %FILE% that corresponds to the relative path to the file in your repository. The path starts at the project's root in your SCM system.

The following configuration will use alternate URLs to your SCM system:

<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changelog-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <displayFileDetailUrl>http://checkstyle.cvs.sourceforge.net/checkstyle%FILE%?view=markup</displayFileDetailUrl>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  ...
</project>