Repositories [message #1696571] |
Wed, 27 May 2015 06:22  |
Eclipse User |
|
|
|
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 #1696652 is a reply to message #1696646] |
Wed, 27 May 2015 12:06   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05219 seconds