Jetty

Jetty plugin ignores proxy.active=false in settings.xml

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Not A Bug
  • Affects Version/s: 7.0.0pre3, 6.1.11
  • Fix Version/s: None
  • Component/s: Maven
  • Labels:
    None
  • Environment:
    windows xp, jdk 1.5
  • Number of attachments :
    0

Description

I have a webapp that connects via svnkit to an url. In my settings.xml if have a proxy defined, but the active flag is false. If I run my webapp with mvn jetty:run it can't get a connection since it tries to go via the proxy en though I have the active flag set to false. If I remove the proxy from my settings.xml it works fine.

This only occurs when running the webapp in jetty, junit tests work as expected.

So I think jetty ignores the proxy,active flag in settings.xml

Activity

Hide
David Yu added a comment -

"If I run my webapp with mvn jetty:run it can't get a connection" ... is this an http connection you're talking about? So basically this has nothing to do with jetty accepting connections... Its your application thats creating a connection outside right?

Show
David Yu added a comment - "If I run my webapp with mvn jetty:run it can't get a connection" ... is this an http connection you're talking about? So basically this has nothing to do with jetty accepting connections... Its your application thats creating a connection outside right?
Hide
Lars Vonk added a comment -

Yes that is correct. In my application I am using svnkit to checkout source from some external svn repository that fails if I define a proxy in my settings.xml even if I set the active flag to false.

Show
Lars Vonk added a comment - Yes that is correct. In my application I am using svnkit to checkout source from some external svn repository that fails if I define a proxy in my settings.xml even if I set the active flag to false.
Hide
David Yu added a comment -

As far as I understand, the comm is between SVNKit and maven for it to honor the proxy declaration in maven's settings.xml. How is jetty involved with that?

Btw, what version of maven2 are you using? It might be a maven bug? (havent used svnkit)

Cheers

Show
David Yu added a comment - As far as I understand, the comm is between SVNKit and maven for it to honor the proxy declaration in maven's settings.xml. How is jetty involved with that? Btw, what version of maven2 are you using? It might be a maven bug? (havent used svnkit) Cheers
Hide
Lars Vonk added a comment -

Hi,

I am using Maven 2.0.9.
But I found out you are right. It has nothing to do with jetty. It is probably a Maven bug (or feature). See http://jira.codehaus.org/browse/MNG-2387. If you have only one proxy defined in your settings.xml it will regard that one as active even if the active flag is false..... sigh

Thanks for replying.

Lars

Show
Lars Vonk added a comment - Hi, I am using Maven 2.0.9. But I found out you are right. It has nothing to do with jetty. It is probably a Maven bug (or feature). See http://jira.codehaus.org/browse/MNG-2387. If you have only one proxy defined in your settings.xml it will regard that one as active even if the active flag is false..... sigh Thanks for replying. Lars

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: