You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Duncan Jr (JIRA)" <ji...@codehaus.org> on 2006/09/01 15:32:48 UTC

[jira] Created: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

checkstyle:check does not see provided scope dependencies
---------------------------------------------------------

                 Key: MCHECKSTYLE-54
                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
             Project: Maven 2.x Checkstyle Plugin
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Stephen Duncan Jr
            Priority: Critical


Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 

<file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
<error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
rawl.tools.checkstyle.TreeWalker"/>

These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Vladimir Pertu (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121874 ] 

Vladimir Pertu commented on MCHECKSTYLE-54:
-------------------------------------------

The issue is still present with following setup:

Maven version: 2.0.8, Java version: 1.5.0_14

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Priority: Critical
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Yoav Shapira (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89944 ] 

Yoav Shapira commented on MCHECKSTYLE-54:
-----------------------------------------

I didn't have includeTestSourceDirectory set before.  Now I've tried setting it, and it makes no difference.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Priority: Critical
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Stephen Duncan Jr (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89040 ] 

Stephen Duncan Jr commented on MCHECKSTYLE-54:
----------------------------------------------

Indeed, I reported this against Maven 2.0.4; the version meant version 2.1 of the checkstyle plugin.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Priority: Critical
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89102 ] 

Dennis Lundberg commented on MCHECKSTYLE-54:
--------------------------------------------

Do you have includeTestSourceDirectory set to true in your plugin configuration?

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Priority: Critical
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122187 ] 

Dennis Lundberg commented on MCHECKSTYLE-54:
--------------------------------------------

Thanks Benjamin.

I wasn't sure myself whether the annotation was required in CheckstyleViolationCheckMojo, but I figured it can't harm to have it there.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>         Attachments: MCHECKSTYLE-54.zip, requires-dep-resolution.patch
>
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122186 ] 

Benjamin Bentmann commented on MCHECKSTYLE-54:
----------------------------------------------

bq. I have committed a fix for this in r617973.
I was a few minutes too late... anyway, take it as as "worked for me" feedback then.

By the way, I wonder whether @requiresDependencyResolution is really required for the CheckstyleViolationCheckMojo. It does not invoke Checkstyle directly but forks the CheckstyleReport mojo which in turn gets the dependencies via its on annotation.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>         Attachments: MCHECKSTYLE-54.zip, requires-dep-resolution.patch
>
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174996#action_174996 ] 

Dennis Lundberg commented on MCHECKSTYLE-54:
--------------------------------------------

fabrice,

This issue has been verified and closed. If you think it should be reopened you need to provide us with a sample project that can be used to reproduce the problems.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>         Attachments: MCHECKSTYLE-54.zip, requires-dep-resolution.patch
>
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "fabrice (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174572#action_174572 ] 

fabrice commented on MCHECKSTYLE-54:
------------------------------------

Is is noted as fixed but I use maven 2.0.9 and checkstyle maven plugin 2.2 and I still have the same error

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>         Attachments: MCHECKSTYLE-54.zip, requires-dep-resolution.patch
>
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MCHECKSTYLE-54.
--------------------------------------

         Assignee: Dennis Lundberg
       Resolution: Fixed
    Fix Version/s: 2.2

I have committed a fix for this in r617973.

A new 2.2-SNAPSHOT has been deployed to the snapshot-repository. Please give that version a try to verify that this issue has been properly resolved.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Yoav Shapira (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94216 ] 

Yoav Shapira commented on MCHECKSTYLE-54:
-----------------------------------------

This issue still happens with Maven 2.0.5 and 2.0.6 on Windows XP, JDK5 and JDK6 both tested.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Priority: Critical
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Yoav Shapira (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89026 ] 

Yoav Shapira commented on MCHECKSTYLE-54:
-----------------------------------------

This issue also affects Maven 2.0.4 and 2.0.5, not just 2.1.  I've tested and confirmed the presence of this issue on Windows XP and Linux (Fedora Core), JDK 5 and JDK 6 alike.  I've sent full details of my situation to the Maven users list just now.

Having <scope>provided</scope> is fairly common, as you know.  Many Java webapps, for example, include the servlet-api, jsp-api, and related jars with provided scope on their classpath.  So here's my vote for fixing it soon ;) 

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Priority: Critical
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MCHECKSTYLE-54) checkstyle:check does not see provided scope dependencies

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHECKSTYLE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MCHECKSTYLE-54:
-----------------------------------------

    Attachment: MCHECKSTYLE-54.zip
                requires-dep-resolution.patch

Attached are a demo project and a fix.

Using the demo project and the unpatched plugin, the following behavior occurred (with Maven 2.0.8):
Running {{mvn clean checkstyle:checkstyle}} failed to locate the compile-time dependency on log4j whereas {{mvn clean compile}} runs checkstyle as part of the default lifecycle and succeeds.

> checkstyle:check does not see provided scope dependencies
> ---------------------------------------------------------
>
>                 Key: MCHECKSTYLE-54
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-54
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Stephen Duncan Jr
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>         Attachments: MCHECKSTYLE-54.zip, requires-dep-resolution.patch
>
>
> Running checkstyle:check against a project that uses Exceptions from dependencies that are provided scope causes checktyle errors such as the following: 
> <file name="/share/duncans/workspace/eclipse/cdcie-webapp-feedreader/src/main/java/mil/jfcom/cie/portal/feedreader/converter/ConverterImpl.java">
> <error line="0" severity="error" message="Got an exception - java.lang.RuntimeException: Unable to get class information for ValidationException." source="com.puppyc
> rawl.tools.checkstyle.TreeWalker"/>
> These errors go away when the scope is changed to compile.  This does not happen for checkstyle:checkstyle; the report correct indicates no checkstyle errors.  This is preventing us from using the checkstyle plugin to enforce checkstyle rules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira