Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] what is a proper way to add the repositories used in tycho as a update site in eclipse?

Hi Mickael,

I could try the composite site approach:

<?xml version='1.0' encoding='UTF-8'?>
<?compositeMetadataRepository version='1.0.0'?>
<repository name=My Update Site
    type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>
  <properties size='2'>
    <property name='p2.compressed' value='true'/>
    <property name='p2.timestamp' value='1243822502499'/>
  </properties>
  <children size='5'>

    <child location='0.0.1.20120904-0408'/>
        <child location='https://hudson.eclipse.org/hudson/job/gemini-jpa/lastSuccessfulBuild/artifact/org.eclipse.gemini.jpa.updatesite/target/repository/'/>
        <child location='http://download.eclipse.org/tools/orbit/downloads/drops/R20120526062928/repository/'/>
        <child location='http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/'/>
        <child location='https://hudson.eclipse.org/hudson/job/bpmn2-nightly/ws/org.eclipse.bpmn2.site/target/site/'/>

  </children>
</repository>

 it worked, but when I select the composite site, it shows a lot features that I would like not to show to customers.

Do you know if there is a way to setup composite to only show the main repository ?

thanks,

Cristiano

On 04/09/12 12:00, Mickael Istria wrote:
On 09/04/2012 04:49 PM, Cristiano Gavião wrote:
Hi,
Hi,


I've created a p2 repository for my plugins using tycho, but I've not included all dependencies, just to get it more thin.

T proper build the plugin, I've set the p2 repositories that contains plugin's dependencies in the pom.

when I go to install the plugins in the eclipse IDE I need to add one by one by hand all p2 that contains the dependencies.

Is there anyway to easy this process, maybe automatically?
content.xml file support an "associate" tag to achieve this, but it does not seem to be configurable through Tycho/p2 publisher: http://www.eclipse.org/forums/index.php/t/369932/
You can either tweak the output of eclipse-repository by creating a Mojo or a script to achieve that.
Or you can use a composite site that contains your site, and its dependencies site.

HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets


_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev


Back to the top