| 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  ?
 
 cheers
 
 Cristiano
 
 
 On 27/05/11 04:22, Sievers, Jan wrote:
 
      see https://bugs.eclipse.org/bugs/show_bug.cgi?id=342808 
-----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
Hi,
I've created a target definition file, added Indigo repository - 
http://download.eclipse.org/releases/indigo 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">
<locations>
<location includeAllPlatforms="false" includeMode="planner" 
includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.equinox.sdk.feature.group" 
version="3.7.0.v20110502-7M7W8Z8eNV4Ulz-bhichboyz0Z5T"/>
<repository location="http://download.eclipse.org/releases/indigo"/>
</location>
<location includeAllPlatforms="false" includeMode="planner" 
includeSource="true" type="InstallableUnit">
<unit id="org.apache.commons.collections.source" 
version="3.2.0.v201005080500"/>
<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"/>
<repository 
location="http://download.eclipse.org/tools/orbit/downloads/drops/S20110523182458/repository"/>
</location>
</locations>
<includeBundles>
<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="org.eclipse.equinox.cm.source"/>
<plugin id="org.eclipse.equinox.cm"/>
<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="org.eclipse.osgi.services"/>
<plugin id="org.eclipse.equinox.weaving.aspectj.source"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.equinox.weaving.caching"/>
<plugin id="org.eclipse.osgi.services.source"/>
<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"/>
</includeBundles>
</target>
I've setup tycho to use this target platform:
<!-- configure target platform resolution -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
<target>
<artifact>
<groupId>${project.groupId}</groupId>
<artifactId>jbehave-osgi-equinox-target-definition</artifactId>
<version>1.0.0-SNAPSHOT</version>
<classifier>indigo</classifier>
</artifact>
</target>
</configuration>
</plugin>
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 ?
thanks
Cristiano
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
 
 |