Closed davidmoten closed 3 years ago
I'm currently stuck with the same problem.
Hi all! Did you guys follow the instructions for setting up a proxy as stated in the README file in the project root? I am no longer behind a proxy, so have I have a hard time to check if this no longer works. It used to work when I was at Oracle.
In my case, yes, I carefully followed the instructions you provided, including proxy setup. But for some reason while behind my company proxy I always got a timeout on the download.eclipse.org repository.
Then I tried building on Windows while not behind a proxy. Both inside WSL and outside, I ran into different issues. At that point, I had spent so much time that I decided to cut my losses and just download and install one of the dev builds from https://ci.adoptopenjdk.net/view/JMC/job/jmc-latest/, which is sufficient at least temporarily.
~/.m2/settings.xml looks like :
<settings>
<proxies>
<proxy>
<id>proxy-http</id>
<active>true</active>
<protocol>http</protocol>
<host>www-yourproxy.host.com</host>
<port>80</port>
<nonProxyHosts>localhost|*.yourcompany.com
</nonProxyHosts>
</proxy>
<proxy>
<id>proxy-ftp</id>
<active>true</active>
<protocol>ftp</protocol>
<host>www-yourproxy.host.com</host>
<port>80</port>
<nonProxyHosts>localhost|*.yourcompany.com
</nonProxyHosts>
</proxy>
<proxy>
<id>proxy-https</id>
<active>true</active>
<protocol>https</protocol>
<host>www-yourproxy.host.com</host>
<port>80</port>
<nonProxyHosts>localhost|*.yourcompany.com
</nonProxyHosts>
</proxy>
</proxies>
</settings>
W.r.t timeout on the download.eclipse.org repository is intermittent.
jmc build behind network proxy works reliably with above proxy setting configured in ~/.m2/settings.xml Closing this as not a defect.
Trying to build jmc behind a proxy and tycho-maven-plugin hangs (with an eventual timeout exception). I assume tycho-maven-plugin does not honour the proxy properly.
I ran
then
The last step hangs with this output:
Note that when I run the last step in debug mode I get some proxy information that confirms that the correct proxy has been set:
This may be a bug to raise on
tycho-maven-plugin
but I am not familiar with this plugin at all (either way I just want to build jmc so raising the issue here).