|Subject:||Re: Checkstyle Behind A Firewall|
|From:||Stephen Duncan (step...@gmail.com)|
|Date:||Sep 30, 2006 4:18:40 pm|
You could put the config file into a jar project, and depend on that project as a build extension, and use a relative url to that file.
On 9/30/06, Craig McClanahan <crai...@apache.org> wrote:
On 9/30/06, Andreas Guther <Andr...@markettools.com> wrote:
Looking at the content of the URL a checkstyle config xml file comes up. Did you try to overwrite the configuration and point to a checkstyle configuration file of your own?
I agree that the file is really there. The problem is that Checkstyle is not respecting the proxy settings to retrieve it, which causes a failure when trying to generate the website (from behind the firewall -- it works fine on a direct connection to the Internet).
I bet you can have that file somewhere behind your firewall and either
have a reltaive, absolute, or internal URL reference to it.
That would work for me, but it would break the build for everyone else.
In the Maven2 build of Shale, I'm having a problem generating the site when running behind a firewall. A bit of research indicates that the problem relates to the following configuration setting for the Checkstyle plugin.
<plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation> http://svn.apache.org/repos/asf/shale/maven/trunk/build/shale_checks.xml </configLocation> </configuration> </plugin>
This setting works fine when not behind a firewall ... but when I am, it fails (even though I have the correct proxy set up in by settings.xml file, and I can download from repositories normally). Is there any way to convince the Checkstyle plugin to use the http proxy for looking up this configuration resource?
-- Stephen Duncan Jr www.stephenduncanjr.com