You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Dangel (JIRA)" <ji...@apache.org> on 2018/01/10 18:34:00 UTC

[jira] [Commented] (MPMD-128) Xref link generation regression with Maven 3

    [ https://issues.apache.org/jira/browse/MPMD-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320798#comment-16320798 ] 

Andreas Dangel commented on MPMD-128:
-------------------------------------

PMD: https://github.com/apache/maven-pmd-plugin/blob/1b2dbbc4b3d77725c79428f5c2cf9bb6f4be965c/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java#L258

Checkstyle: https://github.com/apache/maven-checkstyle-plugin/blob/e4f5f0c067261126bcd5d0c06aa25d0c6bc88282/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java#L674

Surefire: https://github.com/apache/maven-surefire/blob/7a33fd67b066908ef4aad6eb044c40eb4fe29482/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReportMojo.java#L272


> Xref link generation regression with Maven 3
> --------------------------------------------
>
>                 Key: MPMD-128
>                 URL: https://issues.apache.org/jira/browse/MPMD-128
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: CPD, PMD
>    Affects Versions: 2.5
>         Environment: Apache Maven 3.0.1 (r1038046; 2010-11-23 11:58:32+0100)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-27-generic" arch: "i386" Family: "unix"
>            Reporter: Marc Rohlfs
>            Priority: Minor
>         Attachments: MPMD-128-IT.patch, MPMD-128_sample.zip
>
>
> When the site reports are created with Maven 3, the PMD 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-pmd-plugin/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html#240). 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)