This is not a bug, jxr has to run first if you want to link to xref. So if you want it to work with 'mvn site' you have to configure the jxr plugin as a report, see http://maven.apache.org/plugins/maven-jxr-plugin/usage.html

HTH,
-Lukas


Trevor Harmon wrote:
Hi,

I'm trying to use the PMD plugin in my site reports, and it works fine except 
that it fails to generate source cross references. I get:

   [WARNING] Unable to locate Source XRef to link to - DISABLED

If, however, I manually run the JXR plugin first:

   mvn jxr:jxr

Then the source xref is generated and the warning goes away on the next build. This happens when 
running PMD via "mvn site" or directly with "mvn pmd:pmd".

I've attached a very simple test case that reproduces the problem with version 
2.5 of the PMD plugin (the latest version).

Is this a bug in the plugin, or have I configured it wrong? Thanks,

Trevor





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to