[ https://jira.codehaus.org/browse/MCHECKSTYLE-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=356776#comment-356776 ]
Michael Osipov commented on MCHECKSTYLE-265: -------------------------------------------- Use the the most recent versions of both plugins please, anchor pattern has been changed to {{L\d+}} because Doxia otherwise reports linked achors as incorrect. > Problem with navigation in xref sources in maven reports > -------------------------------------------------------- > > Key: MCHECKSTYLE-265 > URL: https://jira.codehaus.org/browse/MCHECKSTYLE-265 > Project: Maven Checkstyle Plugin > Issue Type: Bug > Affects Versions: 2.13 > Environment: Ubuntu 14.04 > Reporter: Aleksey Nesterenko > Attachments: checkstyle.xml, pom.xml > > > Example of usage maven-checkstyle-plugin and maven-jxr-plugin: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jxr-plugin</artifactId> > <version>2.3</version> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-checkstyle-plugin</artifactId> > <version>2.9.1</version> > <!-- Specifying configuration here will take effect on the execution > of "mvn site", > but will not take effect on the execution of "mvn checkstyle:checkstyle" > --> > <configuration> > <configLocation>checkstyle.xml</configLocation> > <failOnViolation>false</failOnViolation> > <enableFilesSummary>false</enableFilesSummary> > <linkXRef>true</linkXRef> > </configuration> > </plugin> > When using maven-checkstyle-plugin version 2.9.1 and jxr-plugin 2.3 > everything goes good and navigation is like: > http://alexkravin.github.io/avoidconditioninversioncheck/checkstyle/xref/com/puppycrawl/tools/checkstyle/checks/design/MutableExceptionCheck.html#120 > Line #120 is bolded, but if using maven-checkstyle-plugin 2.13 (the last > version) - navigation breaks, in link URL appears redundant 'L' symbol and > link looks like: > http://alexkravin.github.io/avoidconditioninversioncheck/checkstyle/xref/com/puppycrawl/tools/checkstyle/checks/design/MutableExceptionCheck.html#L120 > to reproduce: > 1. Clone checkstyle project: https://github.com/checkstyle/checkstyle > 2. Download attached files and put them in the root folder of the project. > 3. run mvn site -- This message was sent by Atlassian JIRA (v6.1.6#6162)