[
https://issues.apache.org/jira/browse/MPMD-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15044981#comment-15044981
]
Dennis Lundberg commented on MPMD-214:
--------------------------------------
If you run your build using the -X flag on the command line, you will get (a
lot of) debug output. Somewhere in there you will be able to see the
configuration used by maven-pmd-plugin. Looking at the code it will probably
say {{linkXRef=true}} which is the default value.
If you copy-and-pasted your config I think that I found the problem. There's a
difference in case in the name of the configuration parameter. Yours
{{linkXref}} and the correct one {{linkXRef}}.
> linkXref in configuration section is ignored
> --------------------------------------------
>
> Key: MPMD-214
> URL: https://issues.apache.org/jira/browse/MPMD-214
> Project: Maven PMD Plugin
> Issue Type: Bug
> Environment: Apache Maven 3.2.5
> Java version: 1.8.0_45, vendor: Oracle Corporation
> OS name: "linux", version: "3.13.0-49-generic", arch: "amd64", family: "unix"
> maven-pmd-plugin 3.5
> Reporter: Kristof Meixner
>
> The configuration of the plugin looks like this:
> {code}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-pmd-plugin</artifactId>
> <version>3.5</version>
> <configuration>
> <linkXref>false</linkXref>
> </configuration>
> <executions>
> <execution>
> <phase>verify</phase>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> During the execution of the {{pmd}} goal I get warnings about missing XRef.
> The {{check}} seems to work as expected:
> {code}
> [INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ net.fatlenny ---
> [WARNING] Unable to locate Source XRef to link to - DISABLED
> [WARNING] Unable to locate Source XRef to link to - DISABLED
> [INFO]
> [INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ net.fatlenny <<<
> [INFO]
> [INFO] --- maven-pmd-plugin:3.5:check (default) @ net.fatlenny ---
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)