Hi, 
         
        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: 
           <url> 
              <discovery label="M2e"
        url="" class="moz-txt-link-rfc2396E" href="http://download.eclipse.org/technology/m2e/releases">"http://download.eclipse.org/technology/m2e/releases"/> 
              <discovery label="M2e extras"
url="" class="moz-txt-link-rfc2396E" href="http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-tycho/0.6.0/N/0.6.0.201207302152/">"http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-tycho/0.6.0/N/0.6.0.201207302152/"/> 
              <discovery label="M2e buildhelpers"
url="" class="moz-txt-link-rfc2396E" href="http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-buildhelper/0.15.0/N/0.15.0.201207090124/">"http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-buildhelper/0.15.0/N/0.15.0.201207090124/"/> 
              <discovery label="Juno p2"
        url="" class="moz-txt-link-rfc2396E" href="http://download.eclipse.org/releases/juno">"http://download.eclipse.org/releases/juno"/> 
           </url> 
         
           <requires> 
              <import feature="org.eclipse.m2e.feature"
        version="1.2.0.20120903-1050"/> 
              <import feature="org.eclipse.m2e.logback.feature"
        version="1.2.0.20120903-1050"/> 
              <import feature="org.sonatype.m2e.buildhelper.feature"
        version="0.15.0.201207090124"/> 
              <import feature="org.sonatype.tycho.m2e.feature"
        version="0.6.0.201207302152"/> 
              <import feature="org.eclipse.egit"
        version="2.0.0.201206130900-r"/> 
           </requires> 
         
         
        But i wonder how i can configure tycho to add the "discovery
        urls" to the content.xml: 
     
    content.xml: 
     <references size='4'>  
             <repository uri='http://download.eclipse.org/technology/m2e/releases'
        url=''
        type='0' options='1' name = 'M2e'/>  
         
              ... 
         </references>  
       
      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. 
     
         
        Question: 
      Is there a way to let tycho create these lines for "repository" in the
      content.xml? 
       
       
      Thanks a lot, 
      Florian Pirchner
  
 |