Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Repositories(Stuck in managing the repository configuration of the eclipse that I install over Oomph)
Repositories [message #1696571] Wed, 27 May 2015 10:22 Go to next message
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 7
Registered: May 2015
Junior Member
Hi

I'm new in Oomph and Eclipse-Setups and I'm stuck in managing the repository configuration of the eclipse that I install over Oomph. We have mirrored repositories because of our netword security specification and further to have control whats installed in version.

So I want to achieve 2 things:
- Remove (or at least disable) the standard entries like http://download.eclipse.org/releases/luna
- Adding our own repositories

I tried adding following 'Preferences' entries in our product.setup file: (key=value)
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/enabled=true
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/isSystem=false
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/nickname=ourcompany Luna
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/uri=http\://eclipse.devres.internal.ourcompany.com/eclipse-luna/


but that does not work.

Do I have to set an ID? Did I miss some documentation? Any help appreciated.


Thank you very much in advance.

Greetings
Re: Repositories [message #1696615 is a reply to message #1696571] Wed, 27 May 2015 13:39 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Hi Niklaus,

You can add a RedirectionTask like this one to your user.setup:

<?xml version="1.0" encoding="UTF-8"?>
<setup:RedirectionTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
sourceURL="http://download.eclipse.org/releases/luna/"
targetURL="http://repos.foo.com/mirrors/luna/"/>

Don't forget the trailing slashes. You can paste this XML snippet directly into your SetupEditor.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 27.05.2015 um 15:19 schrieb Niklaus Bucher:
> Hi
>
> I'm new in Oomph and Eclipse-Setups and I'm stuck in managing the repository configuration of the eclipse that I
> install over Oomph. We have mirrored repositories because of our netword security specification and further to have
> control whats installed in version.
>
> So I want to achieve 2 things:
> - Remove (or at least disable) the standard entries like http://download.eclipse.org/releases/luna
> - Adding our own repositories
>
> I tried adding following 'Preferences' entries in our product.setup file: (key=value)
>
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/enabled=true
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/isSystem=false
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/nickname=ourcompany Luna
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/uri=http\://eclipse.devres.internal.ourcompany.com/eclipse-luna/
>
>
>
> but that does not work.
>
> Do I have to set an ID? Did I miss some documentation? Any help appreciated.
>
>
> Thank you very much in advance.
>
> Greetings


Re: Repositories [message #1696646 is a reply to message #1696615] Wed, 27 May 2015 15:42 Go to previous messageGo to next message
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 7
Registered: May 2015
Junior Member
Hi Eike

Thank you very much for your response.

I added the redirection task to my 'company.product.setup', but it seems that it does not work: If I open the 'Available Software Sites' Preferences in the Eclipse I installed using Oomph, my repo doesn't appear but the original Luna repo still appears. Same with the org.eclipse.equinox.p2.metadata.repository.prefs file located in the '.p2/org.eclipse.equinox.p2.engine/profileRegistry/.../.data/.settings'. I tried with and without trailing slash.

If I open the 'Profile Details' in the Oomph-'Bundle Pool Management'-window, the Repositories section in the 'Definition' Tab showing my repositories. I think because of the configured Repository element in the P2 Director Task (<setupTask xsi:type="setup.p2:P2Task" ...>).

I'm using Oomph version 1.1.0. Build 1216

Thank you very much in advance.

Greetings
Re: Repositories [message #1696652 is a reply to message #1696646] Wed, 27 May 2015 16:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Niklaus,

I tried adding this to my user.setup

<?xml version="1.0" encoding="UTF-8"?>
<setup:RedirectionTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
sourceURL="http://download.eclipse.org/"
targetURL="http:/bogus.example.org/"/>

When I start the installer, and advance to the confirmation page, and
look at the P2 task's list of repositories, I can see they've all become
"bogus". Do your redirections appear to have taken effect, when you
review your P2 task on the confirmation page? If so, as long as you
use Oomph for all your updates, those other sites (added by p2's
discovery data encoded in the p2 update sites themselves) should not
actually be used (in theory).


On 27/05/2015 5:42 PM, Niklaus Bucher wrote:
> Hi Eike
>
> Thank you very much for your response.
>
> I added the redirection task to my 'company.product.setup', but it
> seems that it does not work: If I open the 'Available Software Sites'
> Preferences in the Eclipse I installed using Oomph, my repo doesn't
> appear but the original Luna repo still appears. Same with the
> org.eclipse.equinox.p2.metadata.repository.prefs file located in the
> '.p2/org.eclipse.equinox.p2.engine/profileRegistry/.../.data/.settings'.
> I tried with and without trailing slash.
>
> If I open the 'Profile Details' in the Oomph-'Bundle Pool
> Management'-window, the Repositories section in the 'Definition' Tab
> showing my repositories. I think because of the configured Repository
> element in the P2 Director Task (<setupTask xsi:type="setup.p2:P2Task"
> ...>).
>
> I'm using Oomph version 1.1.0. Build 1216
>
> Thank you very much in advance.
>
> Greetings


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Repositories [message #1696751 is a reply to message #1696652] Thu, 28 May 2015 11:48 Go to previous messageGo to next message
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 7
Registered: May 2015
Junior Member
Hi Eike

Thank you for your response.

At the P2 task on the confirmantion page appear the correct (my) repositories, even I don't add the redirection task. This IMHO cause of my 'company.product.setup' contains 'repository' entries pointing to my composite repository.

My initial intention was to replace our self made shell script that provide our Eclipse using the org.eclipse.equinox.p2.director application with the Oomph Installer. So I have a list of features that I want to install in an org.eclipse.sdk.ide base and we modify the config.ini, the SDKProfile.profile (metadata, artifact and scheduler prefs) with this script.

My conclusion, If I get that right, I have to add the org.eclipse.oomph.setup feature to my setup, if I want to provide an Eclipse using Oomph Installer and have to manage the all updates over the oomph plugin. In case of I won't this at the moment I have to modify my prefs a similar way as before or keep on use the shell script. Am I right?

Thank you in advance.
Re: Repositories [message #1697253 is a reply to message #1696652] Tue, 02 June 2015 17:48 Go to previous messageGo to next message
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 7
Registered: May 2015
Junior Member
Sorry, me again.

I added the org.eclipse.oomph.setup.feature.group to my setup and now my repositories are listed in Preferences>Available Software Sites. As before there are the 'standard' sites too. If I check for updates, an error messages is shown with the message (because I haven't access to web):

Some sites could not be found.  See the error log for more detail.
Unable to connect to repository http://download.eclipse.org/eclipse/updates/4.4/content.xml
Connection refused
Unable to connect to repository http://download.eclipse.org/releases/luna/content.xml
Connection refused
Unable to connect to repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/content.xml
Connection refused


How can I disable the standard entries? Can I achieve that with the eclipse-installer?

Thank you in advance.

Re: Repositories [message #1697260 is a reply to message #1697253] Tue, 02 June 2015 19:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Niklaus,

Comments below.


On 02/06/2015 7:48 PM, Niklaus Bucher wrote:
> Sorry, me again.
>
> I added the org.eclipse.oomph.setup.feature.group to my setup and now
> my repositories are listed in Preferences>Available Software Sites. As
> before there are the 'standard' sites too. If I check for updates, an
> error messages is shown with the message (because I haven't access to
> web):
Don't do that. Use Perform Setup Tasks... That will only use the
repositories you specified in the model, redirected as you've redirected
them. Avoid the things that don't use your setup model...
>
>
> Some sites could not be found. See the error log for more detail.
> Unable to connect to repository
> http://download.eclipse.org/eclipse/updates/4.4/content.xml
> Connection refused
> Unable to connect to repository
> http://download.eclipse.org/releases/luna/content.xml
> Connection refused
> Unable to connect to repository
> http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/content.xml
> Connection refused
>
>
> How can I disable the standard entries? Can I achieve that with the
> eclipse-installer?
>
> Thank you in advance.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Repositories [message #1697266 is a reply to message #1697260] Tue, 02 June 2015 19:53 Go to previous message
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 7
Registered: May 2015
Junior Member
Ok - thank you for the advice.
Previous Topic:About the Product Catalogue
Next Topic:clone existing project
Goto Forum:
  


Current Time: Fri Dec 06 13:24:17 GMT 2024

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

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

Back to the top