Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: checkstyle:checkstyle
    • Labels:
      None
    • Environment:

      Description

      When the site reports are created with Maven 3, the Checkstyle plugin doesn't generate the links to the Source Xref pages, when the JXR Plugin hasn't been executed before.

      The plugin looks for the xrefLocation directory and if it doesn't exist, it checks if the JXR plugin is configured for the project (see http://maven.apache.org/plugins/maven-checkstyle-plugin/xref/org/apache/maven/plugin/checkstyle/CheckstyleReport.html#670). To properly generate the Xref links when the report is created with Maven 3, the plugin should also check the reportPlugins paramerter of the Site plugin configuration.

        Issue Links

          Activity

          Marc Rohlfs created issue -
          Hide
          Marc Rohlfs added a comment -

          As there's no reliable order for the report plugin execution, I can't provide a sample that surely demonstrates the problem. To test, You might change the order of the Checkstyle and the JXR plugin in the POM.

          Show
          Marc Rohlfs added a comment - As there's no reliable order for the report plugin execution, I can't provide a sample that surely demonstrates the problem. To test, You might change the order of the Checkstyle and the JXR plugin in the POM.
          Marc Rohlfs made changes -
          Field Original Value New Value
          Attachment MCHECKSTYLE-150_sample.zip [ 53109 ]
          Hide
          Marc Rohlfs added a comment -

          As a workaround You could just add a simple JXR Plugin configuration to the reporting section of Your (parent) POM:

          <reporting>
            <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.2</version>
              </plugin>
            </plugins>
          </reporting>
          
          Show
          Marc Rohlfs added a comment - As a workaround You could just add a simple JXR Plugin configuration to the reporting section of Your (parent) POM: <reporting> <plugins> <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-jxr-plugin </artifactId> <version> 2.2 </version> </plugin> </plugins> </reporting>
          Kristian Rosenvold made changes -
          Link This issue is related to SUREFIRE-683 [ SUREFIRE-683 ]
          Kristian Rosenvold made changes -
          Link This issue relates to MPMD-128 [ MPMD-128 ]
          schulte2005 made changes -
          Link This issue relates to MFINDBUGS-145 [ MFINDBUGS-145 ]
          schulte2005 made changes -
          Link This issue relates to MCLIRR-38 [ MCLIRR-38 ]
          schulte2005 made changes -
          Link This issue relates to JXR-91 [ JXR-91 ]
          Hide
          Christian Schulte added a comment -

          Patch adding a corresponding integration test.

          Show
          Christian Schulte added a comment - Patch adding a corresponding integration test.
          schulte2005 made changes -
          Attachment MCHECKSTYLE-150-IT.patch [ 56567 ]
          Hervé Boutemy made changes -
          Component/s checkstyle:checkstyle [ 16595 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:17:21 UTC 2015 [ 1428225441187 ]
          Mark Thomas made changes -
          Link This issue relates to JXR-91 [ JXR-91 ]
          Mark Thomas made changes -
          Link This issue relates to MPMD-128 [ MPMD-128 ]
          Mark Thomas made changes -
          Link This issue is related to SUREFIRE-683 [ SUREFIRE-683 ]
          Mark Thomas made changes -
          Workflow jira [ 12718325 ] Default workflow, editable Closed status [ 12749549 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:43:44 UTC 2015 [ 1428273824526 ]
          Mark Thomas made changes -
          Link This issue relates to JXR-91 [ JXR-91 ]
          Mark Thomas made changes -
          Link This issue relates to MPMD-128 [ MPMD-128 ]
          Mark Thomas made changes -
          Link This issue is related to SUREFIRE-683 [ SUREFIRE-683 ]
          Mark Thomas made changes -
          Workflow jira [ 12955865 ] Default workflow, editable Closed status [ 12993034 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Marc Rohlfs
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development