java - Checkstyle plugin incorrectly examines resource files -


when use maven-checkstyle-plugin performs checks on files in src/main/resource folder. i've set <excludes> directive in pom file apparently has no effect. on console see:

[debug]   (f) excludes = **/env/*,/**/env/*,**/resources,/**/resources,**/resources/*,**/resources/**/*,/**/resources/**/* [debug]   (f) includetestsourcedirectory = false [debug]   (f) includes = **\/*.java  [debug]   (f) sourcedirectory = /opt/whitney/workspace/xxx/src/main/java [debug]   (f) testsourcedirectory = /opt/whitney/workspace/xxx/src/test/java   [debug] -- end configuration --  [debug] added '/opt/whitney/workspace/xxx/src/main/resources' source directory. 

this trace suggests ignoring exclusion directive. additionally, properties files being checked checkstyle though <includes> directive mandates **\/*.java

how can prevent checkstyle looking within resources folder?

this known issue 2.10 version of maven-checkstyle plugin. see comments here:

https://jira.codehaus.org/browse/mcheckstyle-184

you can either downgrade version 2.9.1 or wait until fix configuration of in newer version.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -