Reticent checkstyle

“Why, oh why are you failing my local build, Checkstyle?”

But Checkstyle just smiled demurely and shook her head…


I overheard an email conversation today that involved getting Checkstyle errors in Eclipse but it not being apparent what the errors were.  I thought I’d chronicle it here since it could be helpful again in the future…

Developer 1: “I just ran Maven Clean Install and if fails, saying I have 5 Checkstyle violations, but there are no warnings or errors in my Problems pane.  None of the packages in my project show any warnings or errors, either.”

Developer 2: “Look at the “checkstyle-result.xml” file under the target subdirectory of your project to see what it’s complaining about.  There are a few things the maven version is catching that the eclipse version is not.  (So far it has always been legitimate problems).”

Advertisements

, ,

  1. #1 by David on August 22, 2008 - 8:41 am

    Developer 1: “Thanks – I learned that the actual checkstyle violations didn’t appear in Eclipse because they were introduced when I was disconnected from the network, so checkstyle couldn’t run. If I have selected the project, right clicked, and run checkstyle on the whole project in Eclipse, it would have found the problems, too.”

  2. #2 by danielmeyer on August 22, 2008 - 8:45 am

    Quasi-omniscient narrator: Huh! I didn’t realize that the disconnection from the network made a difference.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s