Maven 2.x Checkstyle Plugin

java.lang.RuntimeException: Unable to get class information for XXXException

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows
  • Number of attachments :
    0

Description

When I execute mvn checkstyle:chekstyle I have the violations java.lang.RuntimeException: Unable to get class information for "ServletException".
The declaration of the ServletException in the javadoc comment is the reasons of that violations.

In my pom, I tried to change javax.servlet scope to compile but the problem remains.

I don't remember exactly in which case, but sometimes I have the same violation for local exceptions.

Issue Links

Activity

Hide
jreeman added a comment -

I declared plugin in the pom.xml without version as in the instructions like this :

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</reporting>

Show
jreeman added a comment - I declared plugin in the pom.xml without version as in the instructions like this : <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> </plugin> </plugins> </reporting>

People

  • Assignee:
    Unassigned
    Reporter:
    jreeman
Vote (1)
Watch (1)

Dates

  • Created:
    Updated: