Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Oomph keep on adding site in available update sites
Oomph keep on adding site in available update sites [message #1748878] Tue, 29 November 2016 16:28 Go to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
Hello,

After many tries, I finally managed to have an almost automatic eclipse installation for my whole team.

I defined a project setup, in which I require a bunch of eclipse plugins to be installed.
I do need the installer to use my nexus proxy, so that everyone doesn't download the whole internet on his side.

To be able to achieve this, I have to add 2 redirects entries in eclipse-inst.ini :
-Doomph.redirection.oomph=http://download.eclipse.org/oomph/updates/milestone/latest->http://cerbere:8081/nexus/content/repositories/oomph/ 
-Doomph.redirection.neon=http://download.eclipse.org/releases/neon/201606221000->http://cerbere:8081/nexus/content/repositories/eclipse-neon-update/ 


Eclipse installation goes well till the end by downloading everything needed through my nexus proxy. I added the different update site urls (from nexus) in the project.setup.

Now the problem :
Every time I launch Eclipse, it tries to apply setup, but it fails because the following available update sites are automatically added by I don't know what :
<bookmarks>
   <site url="http://download.eclipse.org/releases/neon/201610111000" selected="true" name=""/>
   <site url="http://download.eclipse.org/technology/epp/packages/neon" selected="true" name=""/>
</bookmarks>


As these update site are using direct access to the internet, and not my nexus proxy, it fails with this error :

ERROR: org.eclipse.equinox.p2.transport.ecf code=1002 HTTP Proxy Authentication Required: http://download.eclipse.org/releases/neon/201610111000/content.xml
ERROR: org.eclipse.ecf.identity code=0 Proxy Authentication Required
  at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:291)
  at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


How can I do to prevent these update sites to be added again and again ?
I tried to add a redirection in a setup task, it didn't change anything.

Thank you for helping.
dom
Re: Oomph keep on adding site in available update sites [message #1748917 is a reply to message #1748878] Wed, 30 November 2016 07:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
I imagine you need to redirect the EPP site as well during installation but you claim it works without that. I also imagine that whatever redirections you've added to the installer's ini are also needed in the installation's ini. But you claimed to have tried that but it didn't change anything. Note that there are redirection tasks that can be used rather for this purpose rather than editing the .ini; the .ini redirections are important if the redirection involves the reading of the *.setup resources themselves, but redirections of update sites can be accomplished with redirection tasks in the setup resources themselves.

In the end, update sites can be added by discovery URLs contributed by the things that have been installed themselves...

It's also not clear what is failing, but perhaps it's Eclipse's own automatic updates, in which case you could turn those off with a preference task. If it's a setup task, showing more of the log would seem helpful to me. But note that if a setup task is using some non-redirected update site, the easiest solution is to add a redirection task to redirect that site...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Oomph keep on adding site in available update sites [message #1748956 is a reply to message #1748917] Wed, 30 November 2016 12:52 Go to previous messageGo to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
Hello Ed,

Well I'm not sure I understood correctly what you meant.
I understand that you say I should add redirections tasks in my project setup, so that these redirections would be used when eclipse tries to access the redirected update sites.
Actually, eclipse tries to access http://download.eclipse.org/releases/neon/201610111000 and http://download.eclipse.org/technology/epp/packages/neon when checking for updates, although I did not use them explicitly. With such redirections, it would do so by accessing the redirected urls, wouldn' it ?
If so, I will give a second try, as after so many tries, I'm not sure exactly of what I did.

Thank you.
dom
Re: Oomph keep on adding site in available update sites [message #1748965 is a reply to message #1748956] Wed, 30 November 2016 14:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Only Oomph uses any of the redirections. Eclipse simply does its own thing, and does not generally use any of Oomph's redirections, i.e., Eclipse/p2 has its own automatic update checking, which you can turn off, and its own manual Check for Updates, for which you can use Perform Setup Tasks instead. We can only control what Oomph does, and there's a limit of what we can control in terms of added update sites.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Oomph keep on adding site in available update sites [message #1750551 is a reply to message #1748878] Thu, 22 December 2016 13:55 Go to previous messageGo to next message
Andrey Loskutov is currently offline Andrey LoskutovFriend
Messages: 89
Registered: July 2009
Member
I have also same issue if trying to use "default" Eclipse builds. They contain p2.inf files with p2 installation instructions like those:
instructions.configure=\
addRepository(type:0,location:http${#58}//download.eclipse.org/eclipse/updates/4.6,name:The Eclipse Project Updates);\
addRepository(type:1,location:http${#58}//download.eclipse.org/eclipse/updates/4.6,name:The Eclipse Project Updates);\
addRepository(type:0,location:http${#58}//download.eclipse.org/releases/neon,name:Neon);\
addRepository(type:1,location:http${#58}//download.eclipse.org/releases/neon,name:Neon);


Those instructions instruct Eclipse to add those update sites to the Eclipse on first startup, and you can't just disable it somehow (or I'm unaware about this).

So either your build your own package or (simpler) you have to patch the p2.inf files coming with your Eclipse flavour and remove those crazy instructions or (I haven't tested this) you add your own features with your p2.inf files which *remove* those update sites on first startup.

I've just removed those instructions and re-build SDK to get rid of it, but I've also interested in your experience.
Re: Oomph keep on adding site in available update sites [message #1752421 is a reply to message #1748956] Mon, 23 January 2017 16:08 Go to previous messageGo to next message
Dominique Jean-Prost is currently offline Dominique Jean-ProstFriend
Messages: 12
Registered: August 2016
Junior Member
Hello,

Well it does work. What I hadn't undestand is the difference between redirection task and eclipse.ini edition task. I used to try eclipse.ini way, but it didn't work.
By adding a redirection task, everything is correct now.
Thank you.
Re: Oomph keep on adding site in available update sites [message #1752456 is a reply to message #1752421] Tue, 24 January 2017 05:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
I'm not sure specifically what has worked for you and what hasn't. But note that p2 update sites are used in the installer itself so if you have an Eclipse Ini task, that will have no impact until the the installation that's been created is launched. To change which update sites are used in the installer, you'd have to edit the eclipse-inst.ini of the installer, or use a redirection task.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Add Update site does not work with SWT
Next Topic:Oomph Setup authentication error
Goto Forum:
  


Current Time: Fri Dec 06 14:25:09 GMT 2024

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

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

Back to the top