Details

    • Global Rank:
      10722

      Description

      Using tycho behind a firewall is not possible:
      the build failed with the following error

      java.lang.RuntimeException: org.eclipse.equinox.internal.provisional.p2.core.ProvisionException: Unable to connect to repository http://download.eclipse.org/releases/ganymede/content.xml
              at org.sonatype.tycho.p2.P2ResolverImpl.addP2Repository(P2ResolverImpl.java:140)
              at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:126)
              at org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:83)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:148)
              at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:245)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:64)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.eclipse.equinox.internal.provisional.p2.core.ProvisionException: Unable to connect to repository http://download.eclipse.org/releases/ganymede/content.xml
              at org.eclipse.equinox.internal.p2.metadata.repository.CacheManager.createCache(CacheManager.java:179)
              at org.eclipse.equinox.internal.provisional.spi.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:60)
              at org.eclipse.equinox.internal.provisional.spi.p2.metadata.repository.SimpleMetadataRepositoryFactory.validateAndLoad(SimpleMetadataRepositoryFactory.java:99)
              at org.eclipse.equinox.internal.provisional.spi.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:87)
              at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:54)
              at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:669)
              at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:617)
              at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
              at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:88)
              at org.sonatype.tycho.p2.P2ResolverImpl.addP2Repository(P2ResolverImpl.java:131)
              ... 14 more
      Caused by: java.net.ConnectException: Connection timed out: connect
              at java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
              at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
              at java.net.Socket.connect(Socket.java:519)
              at sun.net.NetworkClient.doConnect(NetworkClient.java:155)
              at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
              at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
              at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
              at sun.net.www.http.HttpClient.New(HttpClient.java:304)
              at sun.net.www.http.HttpClient.New(HttpClient.java:316)
              at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
              at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
              at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
              at org.eclipse.ecf.provider.filetransfer.browse.URLFileSystemBrowser.runRequest(URLFileSystemBrowser.java:104)
              at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:71)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

      Tycho do not use the proxy configuration in the settings.xml:

      <proxy>
      	<id>your-proxy</id>
      	<active>true</active>
      	<protocol>http</protocol>
      	<host>your.proxy.com</host>
      	<port>80</port>
      </proxy>
      

      The workaround to this issue is to use the default java jvm parameters for proxy as described in http://java.sun.com/javase/6/docs/technotes/guides/net/properties.html

      SET MAVEN_OPTS=%MAVEN_OPTS% -Dhttp.proxyHost=your.proxy.com -Dhttp.proxyPort=80
      

        Activity

        Hide
        Simon Dunstone added a comment -

        This problem is affecting me on Tycho v0.8.0.

        At the moment Tycho is unusable on our build server as the proxy server it sits behind requires authentication which the workaround here does not support.

        Show
        Simon Dunstone added a comment - This problem is affecting me on Tycho v0.8.0. At the moment Tycho is unusable on our build server as the proxy server it sits behind requires authentication which the workaround here does not support.
        Hide
        Jan Sievers added a comment -

        working on a patch which takes proxies from maven's settings.xml and configures the equinox proxy service accordingly
        http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/net/proxy/IProxyService.html

        Show
        Jan Sievers added a comment - working on a patch which takes proxies from maven's settings.xml and configures the equinox proxy service accordingly http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/net/proxy/IProxyService.html
        Hide
        michael tallet added a comment -

        One can still add following properties in MAVEN_OPTS : http.proxyUser, http.proxyPassword (clear text , http.nonProxyHosts if any (if more than one use the | as separator).
        And with equinox from e3.5 I add to exclude commons-httpclient from ecf with the following property:
        -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient

        Show
        michael tallet added a comment - One can still add following properties in MAVEN_OPTS : http.proxyUser, http.proxyPassword (clear text , http.nonProxyHosts if any (if more than one use the | as separator). And with equinox from e3.5 I add to exclude commons-httpclient from ecf with the following property: -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
        Hide
        Jan Sievers added a comment -
        Show
        Jan Sievers added a comment - committed http://github.com/sonatype/sonatype-tycho/commit/61e6a3c15d3d2bb0082a0f303795509bcd17f800 @Igor issue can be closed.
        Hide
        Evgeny Mandrikov added a comment -

        This problem is affecting me on Tycho 0.9.0 and workaround doesn't work.

        Show
        Evgeny Mandrikov added a comment - This problem is affecting me on Tycho 0.9.0 and workaround doesn't work.
        Show
        Jan Sievers added a comment - did you check http://wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies ?

          People

          • Assignee:
            Igor Fedorenko
            Reporter:
            Yann Albou
            Last Updated By:
            Brian Fox
          • Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: