[ http://jira.codehaus.org/browse/MCHECKSTYLE-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcin Kuthan closed MCHECKSTYLE-151. ------------------------------------- Resolution: Cannot Reproduce It looks that file with checkstyle rules was cached somewhere. Even I if tried to access the file with web browser I got the older revision from SVN. Now the rules are applied as I expected. Sorry for the inconvenience! > Rules are not loaded from http location > --------------------------------------- > > Key: MCHECKSTYLE-151 > URL: http://jira.codehaus.org/browse/MCHECKSTYLE-151 > Project: Maven 2.x Checkstyle Plugin > Issue Type: Bug > Affects Versions: 2.6 > Environment: Maven 3.0.2, 2.2.1 > Reporter: Marcin Kuthan > Priority: Critical > > I configured plugin to use rules from: > http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml > Plugin logs that resource is found by URLResourceLoader: > [DEBUG] request.getConfigLocation() > http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml > [DEBUG] The resource > 'http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml' was > not found with resourceLoader > org.codehaus.plexus.resource.loader.FileResourceLoader. > [DEBUG] The resource > 'http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml' was > not found with resourceLoader > org.codehaus.plexus.resource.loader.JarResourceLoader. > [DEBUG] The resource > 'http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml' was > not found with resourceLoader > org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader. > [DEBUG] URLResourceLoader: Found > 'http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml' at '' > [DEBUG] The resource > 'http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml' was > found as http://m4enterprise.googlecode.com/svn/trunk/conf/checkstyle-1.0.xml. > But configured rules are ingored and sun defaults are loaded. The file > target/checkstyle-checker.xml contains default sun rules not mine. > When I change location from http://.... to file:///... my rules are applied > as I expect. > You can reproduce error with: > http://code.google.com/p/m4enterprise/source/browse/trunk/simple-war/ > and > http://code.google.com/p/m4enterprise/source/browse/trunk/corporate-pom/ > Remote location for Checkstyle rules is the most important feature in my > case. I have to prepare and manage common rules for all projects. > Many thanks in advance, > Marcin -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira