You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Trevor Harmon <tr...@vocaro.com> on 2010/08/13 20:54:08 UTC
PMD plugin: source xref not generated unless JXR runs first
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
Re: PMD plugin: source xref not generated unless JXR runs first
Posted by Lukas Theussl <lt...@apache.org>.
Trevor Harmon wrote:
> On Aug 13, 2010, at 11:48 PM, Lukas Theussl wrote:
>
>> 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
>
> Worked great; thanks!
>
> How can I help add this to the documentation? It was not at all clear to me...
I have added a faq:
http://svn.apache.org/viewvc?view=revision&revision=985633
It will be published with the next release.
Cheers,
-Lukas
>
> Trevor
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: PMD plugin: source xref not generated unless JXR runs first
Posted by Trevor Harmon <tr...@vocaro.com>.
On Aug 13, 2010, at 11:48 PM, Lukas Theussl wrote:
> 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
Worked great; thanks!
How can I help add this to the documentation? It was not at all clear to me...
Trevor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: PMD plugin: source xref not generated unless JXR runs first
Posted by Lukas Theussl <lt...@apache.org>.
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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org