You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marcin Kuthan (JIRA)" <ji...@codehaus.org> on 2011/01/28 10:58:58 UTC

[jira] Created: (MCHECKSTYLE-151) Rules are not loaded from http location

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

        

[jira] Commented: (MCHECKSTYLE-151) Rules are not loaded from http location

Posted by "Marcin Kuthan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=253367#action_253367 ] 

Marcin Kuthan commented on MCHECKSTYLE-151:
-------------------------------------------

I've just checked build on Ubuntu and the rules were loaded from remote location successfully.
I tested plugin before on Windows XP under cygwin environment, and I will be able to verify it again on Monday.
Please don't close the issue until I confirm my last finding.

> 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

        

[jira] Closed: (MCHECKSTYLE-151) Rules are not loaded from http location

Posted by "Marcin Kuthan (JIRA)" <ji...@codehaus.org>.
     [ 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