Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Use a Sonatype nexus p2 proxy to download with eclipse installer
Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741105] Tue, 23 August 2016 07:14 Go to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
Hello,

I'm trying to figure out how I can use eclipse installer/oomph in conjunction with my nexus p2 proxy.

Actually, the setup with my nexus P2 proxy works completely with an running instance of eclipse when I want to "Install a new software" or "check for updates".

I'm trying to replace former Google Mechanic to Eclipse Installer to be sure my whole team uses the very same eclipse setup.

As my nexus proxy is actually mirroring internet P2 update site, I want to download my eclipse product through it, but i can't find a way to tell eclipse installer to download "products" through my proxy.

I tried to use -Doomph.redirection.foo but I didn't manage to.

Can someone help me please ?
Thank you.
dom
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741200 is a reply to message #1741105] Tue, 23 August 2016 16:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
What specifically did you try? Are you trying to redirect the update sites that work normally be used to some alternative with the same content? And you tried -Doomph.redirection.foo={uri-normally-used}->{uri-you'd-rather-be-used}?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741255 is a reply to message #1741200] Wed, 24 August 2016 08:17 Go to previous messageGo to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
I tried to add -Doomph.redirection.foo=http://download.eclipse.org/oomph/updates/milestone/latest->http://intra.my-company.com/nexus/repository/ in my eclipse-inst.ini, but the installer keep on trying to download from the internet. I don't know if it's because I made a mistake inmy configuration or because the url I mentionned in the redirection is not one that is currently used by eclipse installer.

I'm trying to use the Mirror of eclipse update site I setup in nexus.
Should I specify all the download url used my eclipse installer one by one ? Could my problem come form the fact that I'm using a incorrect uri-normally-used ?
Thank you.
dom

Here is my ini file
-Doomph.redirection.foo=http://download.eclipse.org/oomph/updates/milestone/latest->http://intra.my-company.com/nexus/repository/mars 
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
--launcher.appendVmargs
--launcher.XXMaxPermSize
256M
-name
Eclipse Installer
-data
@none
-vm
C:\Windows\system32
-vmargs
-Xms256M
-Xmx1024M

[Updated on: Wed, 24 August 2016 08:19]

Report message to a moderator

Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741256 is a reply to message #1741255] Wed, 24 August 2016 08:27 Go to previous messageGo to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
When trying with such a configuration,I get this log output, where you can see that my redirection is not mentionned and so not used.
Thank you.

Executing bootstrap tasks
Java(TM) SE Runtime Environment 1.8.0_45-b14
Product org.eclipse.products.epp.package.jee.latest
Bundle org.eclipse.oomph.setup 1.4.0.v20160530-1355, build=2444, branch=d2a285619d608146f2b29fa5d42db7d6201863c2
Bundle org.eclipse.oomph.setup.core 1.4.0.v20160530-1200, build=2444, branch=d2a285619d608146f2b29fa5d42db7d6201863c2
Bundle org.eclipse.oomph.setup.installer 1.4.0.v20160530-1200, build=2444, branch=d2a285619d608146f2b29fa5d42db7d6201863c2
Bundle org.eclipse.oomph.setup.p2 1.4.0.v20160530-1200, build=2444, branch=d2a285619d608146f2b29fa5d42db7d6201863c2
Performing P2 Director (Eclipse IDE for Java EE Developers (Neon))
Offline = false
Mirrors = true
Resolving 63 requirements from 3 repositories to C:\bin\eclipse-test\jee-latest3\eclipse
Requirement epp.package.jee [4.6.0,5.0.0)
Requirement org.eclipse.platform.feature.group [4.6.0,5.0.0)
Requirement org.eclipse.rcp.feature.group [4.6.0,5.0.0)
Requirement org.eclipse.cft.server.core.feature.feature.group
Requirement org.eclipse.cft.server.ui.feature.feature.group
Requirement org.eclipse.datatools.common.doc.user.feature.group
Requirement org.eclipse.datatools.connectivity.doc.user.feature.group
Requirement org.eclipse.datatools.connectivity.feature.feature.group
Requirement org.eclipse.datatools.doc.user.feature.group
Requirement org.eclipse.datatools.enablement.feature.feature.group
Requirement org.eclipse.datatools.intro.feature.group
Requirement org.eclipse.datatools.modelbase.feature.feature.group
Requirement org.eclipse.datatools.sqldevtools.feature.feature.group
Requirement org.eclipse.datatools.sqltools.doc.user.feature.group
Requirement org.eclipse.egit.feature.group
Requirement org.eclipse.egit.mylyn.feature.group
Requirement org.eclipse.jdt.feature.group
Requirement org.eclipse.jpt.common.eclipselink.feature.feature.group
Requirement org.eclipse.jpt.common.feature.feature.group
Requirement org.eclipse.jpt.dbws.eclipselink.feature.feature.group
Requirement org.eclipse.jpt.jaxb.eclipselink.feature.feature.group
Requirement org.eclipse.jpt.jaxb.feature.feature.group
Requirement org.eclipse.jpt.jpa.eclipselink.feature.feature.group
Requirement org.eclipse.jpt.jpa.feature.feature.group
Requirement org.eclipse.jsf.feature.feature.group
Requirement org.eclipse.jst.common.fproj.enablement.jdt.feature.group
Requirement org.eclipse.jst.enterprise_ui.feature.feature.group
Requirement org.eclipse.jst.jsf.apache.trinidad.tagsupport.feature.feature.group
Requirement org.eclipse.jst.server_adapters.ext.feature.feature.group
Requirement org.eclipse.jst.server_adapters.feature.feature.group
Requirement org.eclipse.jst.server_ui.feature.feature.group
Requirement org.eclipse.jst.web_ui.feature.feature.group
Requirement org.eclipse.jst.webpageeditor.feature.feature.group
Requirement org.eclipse.jst.ws.axis2tools.feature.feature.group
Requirement org.eclipse.jst.ws.cxf.feature.feature.group
Requirement org.eclipse.jst.ws.jaxws.dom.feature.feature.group
Requirement org.eclipse.jst.ws.jaxws.feature.feature.group
Requirement org.eclipse.m2e.feature.feature.group
Requirement org.eclipse.m2e.logback.feature.feature.group
Requirement org.eclipse.m2e.wtp.feature.feature.group
Requirement org.eclipse.m2e.wtp.jaxrs.feature.feature.group
Requirement org.eclipse.m2e.wtp.jpa.feature.feature.group
Requirement org.eclipse.m2e.wtp.jsf.feature.feature.group
Requirement org.eclipse.mylyn.bugzilla_feature.feature.group
Requirement org.eclipse.mylyn.context_feature.feature.group
Requirement org.eclipse.mylyn.ide_feature.feature.group
Requirement org.eclipse.mylyn.java_feature.feature.group
Requirement org.eclipse.mylyn.wikitext_feature.feature.group
Requirement org.eclipse.mylyn_feature.feature.group
Requirement org.eclipse.pde.feature.group
Requirement org.eclipse.recommenders.mylyn.rcp.feature.feature.group
Requirement org.eclipse.recommenders.rcp.feature.feature.group
Requirement org.eclipse.rse.feature.group
Requirement org.eclipse.rse.useractions.feature.group
Requirement org.eclipse.tm.terminal.feature.feature.group
Requirement org.eclipse.wst.common.fproj.feature.group
Requirement org.eclipse.wst.jsdt.chromium.debug.feature.feature.group
Requirement org.eclipse.wst.jsdt.feature.feature.group
Requirement org.eclipse.wst.server_adapters.feature.feature.group
Requirement org.eclipse.wst.web_ui.feature.feature.group
Requirement org.eclipse.wst.xml_ui.feature.feature.group
Requirement org.eclipse.wst.xsl.feature.feature.group
Requirement org.eclipse.oomph.setup.feature.group
Repository http://download.eclipse.org/technology/epp/packages/neon
Repository http://download.eclipse.org/releases/neon/201606221000
Repository http://download.eclipse.org/oomph/updates/milestone/latest
Adding repository http://download.eclipse.org/technology/epp/packages/neon
Adding repository http://download.eclipse.org/releases/neon/201606221000
Adding repository http://download.eclipse.org/oomph/updates/milestone/latest
ERROR: org.eclipse.equinox.p2.transport.ecf code=1002 HTTP Proxy Authentication Required: http://download.eclipse.org/releases/neon/201606221000/content.xml
ERROR: org.eclipse.ecf.identity code=0 Proxy Authentication Required
  at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:287)
  at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741265 is a reply to message #1741255] Wed, 24 August 2016 09:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
It's a VM argument so it must come after the -vm. It also looks like you'll be installing a very old version of Oomph if it's the Mars version, so that's less than ideal.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741266 is a reply to message #1741256] Wed, 24 August 2016 09:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
It looks like you're behind a firewall/proxy that requires configuration and a password.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741592 is a reply to message #1741265] Fri, 26 August 2016 08:05 Go to previous messageGo to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
Ed Merks wrote on Wed, 24 August 2016 09:31
It's a VM argument so it must come after the -vm.


So should it be like this ?
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
--launcher.appendVmargs
--launcher.XXMaxPermSize
256M
-name
Eclipse Installer
-data
@none
-vm
C:\Windows\system32
-vmargs
-Xms256M
-Xmx1024M
-Doomph.redirection.foo=http://download.eclipse.org/oomph/updates/milestone/latest->http://myintranet/myUrlforNeon

Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741596 is a reply to message #1741266] Fri, 26 August 2016 08:07 Go to previous messageGo to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
Ed Merks wrote on Wed, 24 August 2016 09:31
It looks like you're behind a firewall/proxy that requires configuration and a password.


Ed,
You're right. My internet firewall requires authentication. What I wanted to illustrate here is that the redirection I'm desesperalty trying to setup is not used and so eclipse installer tries to download throught the internet and my firewall.
What I want is to skip the internet here. If I achieve it, I won't have firewall problem too.
Thank you for helping.
dom
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741597 is a reply to message #1741596] Fri, 26 August 2016 08:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
It sounds like you'd need to redirect all update sites that are used. So far you've only tried to redirect the Oomph one, right? Your most recent example looked correct.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Use a Sonatype nexus p2 proxy to download with eclipse installer [message #1741627 is a reply to message #1741597] Fri, 26 August 2016 12:12 Go to previous message
Simon Stratmann is currently offline Simon StratmannFriend
Messages: 10
Registered: August 2016
Junior Member
Dominique,

I had a lot of trouble using the Nexus p2 proxy. In some cases metadata and artifacts would not match. artifacts.xml contained plugin versions newer than the ones found in the plugin folder. The installation would then fail. In other cases the proxy's update site was unreachable when the proxied update site was offline, which is pretty much the opposite of what I would've expected.
Previous Topic:Trying to figure Oomph Out - how to use it
Next Topic:support for FreeBSD and/or other BSDs
Goto Forum:
  


Current Time: Fri Mar 29 00:26:28 GMT 2024

Powered by FUDForum. Page generated in 0.03411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top