Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] Question about "sites to visit" in content.xml


i am using tycho for a while now and really like it very much.

Yesterday i created a feature (
IDE Setuphelper Feature), that does not contain any plugins, but just defines "dependencies" to other features located in different P2 repos. It should be a feature that allows users to install maven, tycho, egit and some other features to the eclipse IDE at once.
Just addressing my P2 repo in the eclipse update manager, selecting the "IDE Setuphelper Feature" and all referenced features are beeing installed from their "home" repos.

To define the "home" repos of the referenced features, i am using "Sites to visit" in the feature.xml.

The final feature looks something like that:
      <discovery label="M2e" url="" class="moz-txt-link-rfc2396E" href="">""/>
      <discovery label="M2e extras" url="" class="moz-txt-link-rfc2396E" href="">""/>
      <discovery label="M2e buildhelpers" url="" class="moz-txt-link-rfc2396E" href="">""/>
      <discovery label="Juno p2" url="" class="moz-txt-link-rfc2396E" href="">""/>

      <import feature="org.eclipse.m2e.feature" version=""/>
      <import feature="org.eclipse.m2e.logback.feature" version=""/>
      <import feature="org.sonatype.m2e.buildhelper.feature" version=""/>
      <import feature="org.sonatype.tycho.m2e.feature" version=""/>
      <import feature="org.eclipse.egit" version=""/>

But i wonder how i can configure tycho to add the "discovery urls" to the content.xml:

<references size='4'>
     <repository uri='' url='' type='0' options='1' name = 'M2e'/>

With these line in content.xml the eclipse update manager will automatically add the repos to the list of available updatesites. Otherwise i have to specify the URLs manually at the eclipse update manager.


Is there a way to let tycho create these lines for
"repository" in the content.xml?

Thanks a lot,
Florian Pirchner

Back to the top