[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] Is it possible to install a feature into an RCP app at build time?
|
> <?xml version="1.0" encoding="UTF-8"?>
> <site>
> <feature url="features/com.mydomain.myrcpapp.rcp.feature_1.1.7.qualifier.jar" id="com.mydomain.myrcpapp.rcp.feature" version="1.1.7.qualifier">
> <category name="com.mydomain"/>
> </feature>
You can simplify these for Tycho and just specify the id attribute; that'll cause Tycho to pick up the latest version. I doubt Tycho even uses the url attribute.
> How is the RCP build going to find that? My other feature is built completely independently of the RCP build. When I ran my RCP build, the other feature still was not pre installed.
Tycho will find it as long as the feature is available in either your ~/.m2/repository, one of the configured <repository/>, or is one of the projects being built.
> So I modified the RCP's category.xml by adding the url of my other feature's p2 repository and made it look like this,
>
> <feature url="http://mydomain.com/p2reposiotry/myotherfeature/features/com.mydomain.myotherfeature.feature_1.0.0.qualifier.jar" id="com.mydomain.myotherfeature.feature" version="1.0.0.qualifier">
>
> But, that didn't work either.
Ah, that's likely the problem: the repository has to be added to your list. You should be able to add something like the following to your pom.xml:
<repositories>
<repository>
<id>jre</id>
<layout>p2</layout>
<url>http://mydomain.com/p2reposiotry/myotherfeature/</url>
</repository>
</repositories>
(note that there appears to be a typo: "reposiotory" vs "repository")
> Another reply on this discussion mentioned this bug, https://bugs.eclipse.org/bugs/show_bug.cgi?id=361722 and that leads me to believe that Tycho doesn't have the ability to do this, yet.
Well I do it in my product builds and have been for over a year ;)
Brian.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature