Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] [tycho-user] Tycho is downloading not selected plugin on Target Definition

Hi Jan,

Man, I didn't see this email before... :(    if I had seen would have saved me a lot of work and time...

Now I'm thinking I'm in a big trouble... ;(

I've some bundles that were created using maven-bundle-plugin with embedded jars and I'm trying to use it with tycho. And besides this felix tool were a 'savior' its defaults to put lot of not important things on Import-package on the generated manifest (mostly when used with embed transitives).

I've discovered this problem because my bundles has nothing to do with any eclipse and any UI things, just bundles and equinox console. But my tycho generated p2 repository is full of UI bundles as "org.eclipse.ui_3.7.0.I20110519-0100.jar", org.eclipse.ui.workbench_3.7.0.I20110519-0100.jar, org.eclipse.jubula.toolkit.common_0.9.0.201105250649.jar, etc... just because I'm using indigo repository...

So now, I think that I need manually manage all import package on my auto generated pom-first bundles...

I did some changes on one bundle and put some of them as optional... but I've discovered today that Tycho doesn't care about optional too...

My next try is to put those packages as Ignore-Package. Will tycho deal with that  ?



On 27/05/11 04:22, Sievers, Jan wrote:

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Cristiano Gavião
Sent: Donnerstag, 26. Mai 2011 23:19
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Tycho is downloading not selected plugin on Target Definition


I've created a target definition file, added Indigo repository - and just selected a feel 
plugins and clicked on "add required" to resolve dependencies.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>

<target name="indigo" sequenceNumber="14">
<location includeAllPlatforms="false" includeMode="planner" 
includeSource="true" type="InstallableUnit">
<unit id="" 
<repository location=""/>
<location includeAllPlatforms="false" includeMode="planner" 
includeSource="true" type="InstallableUnit">
<unit id="org.apache.commons.collections.source" 
<unit id="org.apache.commons.collections" version="3.2.0.v201005080500"/>
<unit id="org.apache.commons.lang.source" version="2.4.0.v201005080502"/>
<unit id="org.apache.commons.lang" version="2.4.0.v201005080502"/>
<plugin id="org.eclipse.equinox.transforms.hook.source"/>
<plugin id="org.eclipse.equinox.weaving.caching.source"/>
<plugin id="org.eclipse.equinox.weaving.hook"/>
<plugin id="org.apache.commons.collections"/>
<plugin id="org.apache.commons.lang.source"/>
<plugin id="org.eclipse.equinox.weaving.aspectj"/>
<plugin id="org.eclipse.osgi.util.source"/>
<plugin id=""/>
<plugin id=""/>
<plugin id="org.apache.commons.collections.source"/>
<plugin id="org.eclipse.equinox.common.source"/>
<plugin id="org.eclipse.equinox.servletbridge.extensionbundle"/>
<plugin id="org.eclipse.equinox.weaving.caching.j9.source"/>
<plugin id="org.eclipse.equinox.weaving.hook.source"/>
<plugin id=""/>
<plugin id="org.eclipse.equinox.weaving.aspectj.source"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.equinox.weaving.caching"/>
<plugin id=""/>
<plugin id="javax.servlet.source"/>
<plugin id="javax.servlet"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.apache.commons.lang"/>
<plugin id="org.eclipse.osgi.util"/>
<plugin id="org.eclipse.osgi.source"/>
<plugin id="org.eclipse.equinox.transforms.hook"/>
<plugin id="org.eclipse.equinox.weaving.caching.j9"/>

I've setup tycho to use this target platform:

<!-- configure target platform resolution -->

Running the build with -X I can see that Tycho is downloading lots 
plugins that wasn't selected in "includeBundles" list. It seems to be 
downloading everything from the repo including source plugins.

It is something wrong how I've setup ?



tycho-user mailing list
tycho-user mailing list

Back to the top