Hi, I think my issue is the same one Dan Kulp raised in the Maven 2.0.5 release vote: http://www.mail-archive.com/dev@maven.apache.org/msg64334.html In short, the Checkstyle plugin reports the following: C:\svn\myfiles\fooServlet.java:0: Got an exception - java.lang.RuntimeException: Unable to get class information for ServletException.
This behavior occurred with Maven 2.0.4 and occurs with 2.0.5, no difference. It happens on both Windows XP and Linux (Fedora), no difference. It happens with JDK 5 and 6, no difference. I don't think it's the same issue as http://jira.codehaus.org/browse/MNG-2795 because Maven is correctly finding my custom checkstyle rules file, reading it, and using it. The many other checkstyle checks in my file are processed correctly. It's only these throws clauses that cause the "unable to get class information" exceptions. I'm using Maven to create a web application. Naturally for a Java webapp, one of the dependencies is the Servlet API, v2.4. So in the dependencies section I have a dependency for it, with <scope>provided</scope> as I don't want it included in my WAR file. I'm using Checkstyle to check coding conventions, with a custom checkstyle rules file. That rules file is in a JAR, mycompany-foundation.jar. I've put that jar as a build extension in my webapp POM. The relevant section of the pom looks like this: <build> <extensions> <extension> <groupId>com.mycompany.foundation</groupId> <artifactId>mycompany-foundation</artifactId> <version>1.0</version> </extension> </extensions> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation>com/mycompany/checkstyle.xml</configLocation> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> </configuration> </plugin> ... When I run this, I get the above errors. I've tried adding a copy of the servlet-api dependency to the dependencies element of the Maven checkstyle plugin, and that didn't help. I tried adding the servlet-api dependency as a build extension, and that didn't help either. Any help would be appreciated. Thanks, Yoav --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]