[ http://jira.codehaus.org/browse/MCHECKSTYLE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213936#action_213936 ]
Dominique Jean-Prost edited comment on MCHECKSTYLE-135 at 3/15/10 9:58 AM: --------------------------------------------------------------------------- I tested with the new plexus plugin : I added this in my plugin management section : {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.5</version> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-resources</artifactId> <version>1.0-alpha-7</version> </dependency> </dependencies> </plugin> {code} Then if I use mvn checkstyle:checkstyle, the url cofiguration works well. If I use *mvn site, it fails* was (Author: djeanprost): I tested with the new plexus plugin : I added this in my plugin management section : {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.5</version> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-resources</artifactId> <version>1.0-alpha-7</version> </dependency> </dependencies> </plugin> {code} Then if I use mvn checkstyle:checkstyle, the url cofiguration works well. If I use mvn site, it fails > Can't use a configFile with an URL > ---------------------------------- > > Key: MCHECKSTYLE-135 > URL: http://jira.codehaus.org/browse/MCHECKSTYLE-135 > Project: Maven 2.x Checkstyle Plugin > Issue Type: Bug > Affects Versions: 2.5 > Reporter: Dominique Jean-Prost > Assignee: Olivier Lamy > Fix For: 2.6 > > Attachments: log.txt > > > If I specify a config file with an url, this file can't be downloaded anymore. > I double checked that this file is reachable by http. > After searching a bit, I guess the problem comes from > org.codehaus.plexus.resource.loader.URLResourceLoader.getResource(String) in > the following lines : > for ( Iterator i = paths.iterator(); i.hasNext(); ) { <-- paths is empty there > } -- 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