Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] tycho-eclipserun-plugin behind a proxy - solved


Some time ago I asked about how to configure the tycho-eclipserun-plugin to work nicely behind a proxy.

David Williams pointed me to this:

Perhaps this reference will help?

Not sure how this "fits in" with tycho-eclipserun-plugin ... but it explains how p2 doesn't use -Dhttp.proxyHost, etc.

Tycho-eclipserun-plugin might provide its own methods/techniques for setting the Eclipse network preferences (I'm not familiar with it, hate to admit).

and in the meantime I figured out how to configure that easily in your pom.xml. This is what I am doing now, I case anybody has to solve this as well.

I ended up adding this to my pom.xml file (before I execute the tycho-eclipserun-plugin):
(assuming that the usual http.proxyHost/Port properties are set)

<touch file="${}/work/configuration/.settings/" mkdirs="true"/>

<propertyfile file="${}/work/configuration/.settings/">
                      <entry  key="eclipse.preferences.version" value="1"/>
<entry key="nonProxiedHosts" value="${http.nonProxyHosts}"/> <entry key="" value="true"/>
                      <entry  key="proxyData/HTTP/hasAuth" value="false"/>
<entry key="proxyData/HTTP/host" value="${http.proxyHost}"/> <entry key="proxyData/HTTP/port" value="${http.proxyPort}"/>
                      <entry  key="systemProxiesEnabled" value="false"/>


Back to the top