Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Proxy integration inside Eclipse

Hello Jeff,

> I am about to use Eclipse Aether inside an Eclipse based tooling. When a
> proxy is required for HTTP access, Eclipse provides a nice and
> integrated proxy configuration.
> My question is the following: does Eclipse Aether use this source of
> configuration or do I need to configure Aether programmatically ?

AFAIK, you need to do this programmatically, as Aether doesn't know
anything about the way how Eclipse handles proxies. There is a
ProxySelector interface [1], however, so I would suggest writing an
Adapter from Eclipse's IProxyService to Aether's ProxySelector.

However, keep in mind that Aether then gets an up-to-date view of
Eclipse's proxy configuration, which may change over time (although I
don't know how often Aether actually queries the ProxySelector; probably
Benjamin knows). This may or may not be what you want.

Anyways, if you follow the Adapter route, I would be very interested in
your code.

Hope this helps.

Andreas

[1]
<http://download.eclipse.org/aether/aether-core/0.9.0.M4/apidocs/org/eclipse/aether/repository/class-use/ProxySelector.html>

-- 
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top