You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Craig McClanahan <cr...@apache.org> on 2006/09/30 23:43:59 UTC
Checkstyle Behind A Firewall
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?
Craig
Re: Checkstyle Behind A Firewall
Posted by Barrie Treloar <ba...@gmail.com>.
On 10/1/06, Craig McClanahan <cr...@apache.org> wrote:
> 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?
I have the same problem Craig.
A workaround is to temporarily hack the poms, since I am working on
maven plugins which are configured in parent poms to use:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven-header.txt
Another workaround is to use
mvn -U site
For some reason checkstyle uses the proxy settings then.
This raises a pet issue of mine is proxy support.
Should all plugins be using wagon (or some common URL handling code,
or somehow replacing socket connections with proxy aware ones) so that
this issue is fixed once and for all? Until there is common way to
handle this adding NTLM support will be painful.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Checkstyle Behind A Firewall
Posted by Andreas Guther <An...@markettools.com>.
You could use a parent pom file that defines the Checkstyle settings
globally. Deploy the parent pom to your internal repository. In your
modules use the parent pom file (do not use the relativePath element (or
whatever the name is)) since you have deployed it to your internal
server, it is not needed.
That configuration would avoid the need to define the Checkstyle usage
and configuration in every single module.
Andreas
-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com]
Sent: Saturday, September 30, 2006 4:55 PM
To: Maven Users List
Subject: Re: Checkstyle Behind A Firewall
On 9/30/06, Stephen Duncan <st...@gmail.com> wrote:
> 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.
That's how I set it up originally for Struts, but then I realized we
would have to release this jar, just like we have to release the
master pom, in advance of a release of the framework.
The only other option I can think of is configuring the Checkstyle
plugin in every single module with the correct relative path.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Checkstyle Behind A Firewall
Posted by Wendy Smoak <ws...@gmail.com>.
On 9/30/06, Stephen Duncan <st...@gmail.com> wrote:
> 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.
That's how I set it up originally for Struts, but then I realized we
would have to release this jar, just like we have to release the
master pom, in advance of a release of the framework.
The only other option I can think of is configuring the Checkstyle
plugin in every single module with the correct relative path.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Checkstyle Behind A Firewall
Posted by Stephen Duncan <st...@gmail.com>.
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.
-Stephen
On 9/30/06, Craig McClanahan <cr...@apache.org> wrote:
> On 9/30/06, Andreas Guther <An...@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.
>
> Andreas
>
>
> Craig
>
>
>
> -----Original Message-----
> > From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of Craig
> > McClanahan
> > Sent: Saturday, September 30, 2006 2:44 PM
> > To: Maven Users List
> > Subject: Checkstyle Behind A Firewall
> >
> > 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?
> >
> > Craig
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
--
Stephen Duncan Jr
www.stephenduncanjr.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Checkstyle Behind A Firewall
Posted by Craig McClanahan <cr...@apache.org>.
On 9/30/06, Andreas Guther <An...@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.
Andreas
Craig
-----Original Message-----
> From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of Craig
> McClanahan
> Sent: Saturday, September 30, 2006 2:44 PM
> To: Maven Users List
> Subject: Checkstyle Behind A Firewall
>
> 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?
>
> Craig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: Checkstyle Behind A Firewall
Posted by Andreas Guther <An...@markettools.com>.
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 bet you can have that file somewhere behind your firewall and either
have a reltaive, absolute, or internal URL reference to it.
Andreas
-----Original Message-----
From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of Craig
McClanahan
Sent: Saturday, September 30, 2006 2:44 PM
To: Maven Users List
Subject: Checkstyle Behind A Firewall
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?
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org