[ https://jira.codehaus.org/browse/MCHECKSTYLE-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=326644#comment-326644 ]
Dennis Lundberg commented on MCHECKSTYLE-184: --------------------------------------------- Yes, you are correct. The documenation is a bit lacking at the moment. There are some technical reasons for that. The inclusion of *.properties is only done for the src/main/resources directory. The pattern is currently hard-coded so there is no configuration parameter where this can be changed, and it's therefor not possible to document it on the mojo web page. There does indeed seem to be a bug in that this new feature is only being invoked for the report, but not for the mojo. I'll open another issue for that and fix it. You can only have a regression if you decide to upgrade the version of maven-checkstyle-plugin that you are using. So one workaround for you is to stick with the previous version. I'm curious about what your Checkstyle rule looks like. Is it a custom check or one of the built-in checks? Is it possible to set the file extensions in the check? If you are using one of the built-in Regexp checks (http://checkstyle.sourceforge.net/config_regexp.html) you can configure the fileExtensions property to tell it which files it should process. > Allow src/main/resources to be searched by Checkstyle > ----------------------------------------------------- > > Key: MCHECKSTYLE-184 > URL: https://jira.codehaus.org/browse/MCHECKSTYLE-184 > Project: Maven 2.x Checkstyle Plugin > Issue Type: New Feature > Affects Versions: 2.9.1 > Reporter: Dennis Lundberg > Assignee: Dennis Lundberg > Fix For: 2.10 > > > There is a nice check in Checkstyle that allows you to keep your localized > resource bundles in sync. > <module name="Translation"/> > http://checkstyle.sourceforge.net/config_misc.html > In its current state maven-checkstyle-plugin cannot make use of this check, > for two reasons: > # maven-checkstyle-plugin only recognizes {{\*\*/\*.java}} files. This can be > re-configured with the <includes> parameter. > # maven-checkstyle-plugin supports only one source directory, which is > configured with the <sourceDirectory> parameter. > We need to be able to add a resource directory (/src/main/resources by > default) that is searched for {{\*\*/\*.properties}} files by default. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira