You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2014/03/17 13:13:59 UTC

[jira] (MCHECKSTYLE-224) Warning about missing XRef for module with no source

     [ https://jira.codehaus.org/browse/MCHECKSTYLE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MCHECKSTYLE-224:
----------------------------------------

    Description: 
If you run {{mvn jxr:jxr checkstyle:checkstyle}} on a project that does not have any (java) sources - only resources, the following warning is issued:

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

This warning can only be suppressed through configuration if we skip checkstyle for that particular project/module.

The warning is bogus though, because there are no sources that Checkstyle will check, so there is no need to check for any XRef to start with.

It should be possible to delay checking for XRef until it has been determined that the sources actually exist.

  was:
If you run pmd:pmd on a project that does not have any (java) sources - only resources, the following warning is issued:

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

This warning can only be suppressed through configuration if we skip pmd for that particular project/module.

The warning is bogus though, because there are no sources that PMD will check, so there is no need to check for any XRef to start with.

It should be possible to delay checking for XRef until it has been determined that the sources actually exist. I'm working on a patch.

All of the above also applies to pmd:cpd.

        Summary: Warning about missing XRef for module with no source  (was: CLONE - Warning about missing XRef for module with no source)

> Warning about missing XRef for module with no source
> ----------------------------------------------------
>
>                 Key: MCHECKSTYLE-224
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-224
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.12
>            Reporter: Dennis Lundberg
>            Assignee: Dennis Lundberg
>
> If you run {{mvn jxr:jxr checkstyle:checkstyle}} on a project that does not have any (java) sources - only resources, the following warning is issued:
> [WARNING] Unable to locate Source XRef to link to - DISABLED
> This warning can only be suppressed through configuration if we skip checkstyle for that particular project/module.
> The warning is bogus though, because there are no sources that Checkstyle will check, so there is no need to check for any XRef to start with.
> It should be possible to delay checking for XRef until it has been determined that the sources actually exist.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)