p2: Unable to specify an associate/referenced repository [message #840671] |
Tue, 10 April 2012 11:08 |
Rüdiger Herrmann Messages: 335 Registered: July 2009 |
Senior Member |
|
|
Hello all,
I am building a p2 repository for a feature. Apart from dependencies on
the Eclipse platform, this feature has dependencies to bundles that can
not be found in the default repositories (those that ship with the
Eclipse SDK download).
Now I learned that a repository can have associate/referenced
repositories. Only I can't make them work.
First, I tried to add an update site reference to the feature.xml file.
According to [1], this should be converted into a repository reference
by the p2 publisher. The site reference look like this:
<url>
<discovery label="Associated repo" url="http://..."/>
</url>
But the content.xml produced by the tycho-based build does not contain
the expected repository references.
Next, as also suggested in [1], I tried to specify the referenced
repository in a p2.inf like so:
instructions.collect=\
addRepository(type:0,location:http${#58}//...,enabled:true);\
addRepository(type:1,location:http${#58}//...,enabled:true);
Though the information ends up in the content.xml, it seems to be
ignored. While installing (Eclipse > Help > Install new Software) the
feature, the p2 installer complains about unresolved dependencies (those
that are contained in the associate repository).
Variations to the above didn't succeed either:
* instructions.install instaed of instructions.collect
* org.eclipse.equinox.p2.touchpoint.eclipse.addRepository instead of
just addRepository
Sorry that this post got rather lengthy but I hope you are still with me
and can give me some hints why this doesn't work.
TIA
Rüdiger Herrmann
[1] http://dev.eclipse.org/mhonarc/lists/p2-dev/msg04147.html
|
|
|
|
Powered by
FUDForum. Page generated in 0.03139 seconds