p2-maven-plugin icon indicating copy to clipboard operation
p2-maven-plugin copied to clipboard

Allow to define proxy settings for the P2 resolver

Open xsilmarx opened this issue 9 years ago • 3 comments

When running the example of the P2 resolver I was not able to access to the P2 repository even the proxy was defined in the maven settings file. I suppose the P2 resolver is not using the maven settings. If I run the example at home where there's no proxy the example runs fine.

My suggestion is to reuse the setting from Maven or allow to define a proxy for the p2-maven-plugin, otherwise this can't be used behind a proxy, which is very a very common scenario in enterprise environments.

xsilmarx avatar Apr 25 '15 15:04 xsilmarx

This is definitely a blocker. Can anyone else confirm that it doesn't read the maven proxy settings?

mv2a avatar May 22 '15 13:05 mv2a

Yes, I can confirm this. Using the same repos with tycho works, but p2-maven-plugin definitely wants to connect directly.

thraidh avatar Jan 06 '17 11:01 thraidh

You can work around the problem by using something like mvn -Dhttp.proxyHost=proxy.your-company.com -Dhttp.proxyPort=8888 -Dhttp.nonProxyHosts=*.your-company.com. Still, it would be better if the files were downloaded using the proxy specified maven settings.

thraidh avatar Mar 12 '17 15:03 thraidh