Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] associateSites.xml with eclipse-repository packaging type

Hi Mickael,

thanks a lot for the pointer -- I voted it up. :)

Cheers,
 Christoph Daniel

On 05.11.12 17:31, Mickael Istria wrote:
> Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=391033 and vote
> it up.
> 
> On 11/02/2012 02:07 PM, Christoph Daniel Schulze wrote:
>> Hi everyone,
>>
>> I'm trying to build an Eclipse p2 repository containing a feature
>> consisting of two plug-ins. There is no product involved -- the feature
>> provides functionality that is supposed to enhance existing products,
>> but that is not a product in itself.
>>
>> My problem is that the feature depends on another feature which will not
>> be part of the same repository, but of another repository. Back in the
>> old days, we just added the repository to an associateSites.xml file.
>> With the packaging type set to eclipse-repository, however,
>> associateSites.xml doesn't seem to be supported anymore, as described in
>> this thread:
>>
>>    http://dev.eclipse.org/mhonarc/lists/tycho-user/msg00256.html
>>
>> To be sure, I cloned the Tycho git repository and searched the source
>> tree for lines containing the string "associateSites". The only hits I
>> got seemed to be in the implementation of the eclipse-update-site
>> packaging type. And in fact, this works when I change the packaging type
>> back to eclipse-update-site; however, I would consider this to be a
>> workaround rather than a good solution.
>>
>> Having said all this, my question is if there is another way to add
>> associate sites to a repository created using the eclipse-repository
>> packaging type (without adding a product definition)?
>>
>> For reference, I've included the relevant parts of the the files my
>> repository project consists of below. I hope all relevant parts are
>> included, but feel free to ask for the complete files if you feel that I
>> have missed anything important.
>>
>> Cheers,
>>  Christoph Daniel
>>
>>
>> First, part of my pom.xml:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project [...]>
>>   <modelVersion>4.0.0</modelVersion>
>>
>>   <version>0.1.0-SNAPSHOT</version>
>>   <artifactId>my.repository.id</artifactId>
>>   <packaging>eclipse-repository</packaging>
>>   <name>My Repository Project Name</name>
>>
>>   <parent>
>>     [...]
>>   </parent>
>> </project>
>>
>>
>> Now for category.xml:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <site associateSitesURL="associateSites.xml">
>>    <description [...]>
>>       My update site contains stuff.
>>    </description>
>>    <feature [...]>
>>       <category [...]/>
>>    </feature>
>>    <category-def [...]>
>>       [...]
>>    </category-def>
>> </site>
>>
>>
>> And finally associateSites.xml:
>>
>> <associateSites>
>>     <associateSite
>>         label="KIELER"
>>         url="http://rtsys.informatik.uni-kiel.de/~kieler/updatesite/"; />
>> </associateSites>
>>
> 
> 
> -- 
> Mickael Istria
> Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
> My blog <http://mickaelistria.wordpress.com> - My Tweets
> <http://twitter.com/mickaelistria>
> 
> 
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
> 

-- 
Dipl.-Inf. Christoph Daniel Schulze

Christian-Albrechts University of Kiel
Department of Computer Science
Chair of Real-Time and Embedded Systems

Room 1112
Phone +49 (0)431 880-7297

Olshausenstr. 40
24098 Kiel
Germany

Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top