Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to exclude an optional transitive feature/plugin from a product?

Thanks Igor for the explanations.

>________________________________
> De : Igor Fedorenko <igor@xxxxxxxxxxxxxx>
>À : tycho-user@xxxxxxxxxxx 
>Envoyé le : Samedi 19 Novembre 2011 3h18
>Objet : Re: [tycho-user] How to exclude an optional transitive feature/plugin from a product?
> 
>Correct. It is not possible to disable installation of optional/greedy
>dependencies using Tycho 0.13 and earlier. We are currently discussing
>possibility to add this in some future version [1], but no specific
>plans yet.
>
>
>[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=356579
>
>
>--
>Regards,
>Igor
>
>On 11-11-18 7:50 PM, Julien HENRY wrote:
>> Does it means I have no other choice with current version of Tycho
>> than first mirroring the source repo to manually exclude the optional
>> dependencies, then make my Tycho build point on the mirror?
>>
>> Regards, >
>> Julien
>>
>>
>>> ________________________________
>>> De : Igor Fedorenko<igor@xxxxxxxxxxxxxx>
>>> À : tycho-user@xxxxxxxxxxx
>>> Envoyé le : Vendredi 18 Novembre 2011 18h04
>>> Objet : Re: [tycho-user] How to exclude an optional transitive feature/plugin from a product?
>>>
>>> This is not as much about Tycho but rather the IUs you include. Older
>>> versions of p2 (3.7 and earlier) used to represent optional dependencies
>>> and "greedy" in p2 metadata, which means they will be installed as long
>>> as they are available in any p2 repository accessible by the build. The
>>> new version of p2 properly represents optional dependencies as
>>> non-greedy, which does not trigger installation.
>>>
>>> --
>>> Regards,
>>> Igor
>>>
>>> On 11-11-18 9:34 AM, Julien HENRY wrote:
>>>> Hi,
>>>>
>>>> I am using Tycho to build a custom Eclipse product. So I have a feature that references all other features I want to have included (jdt, m2e, svn, jboss-tools, ...). But some features have dependencies on other features that are optional and that I don't need.
>>>> Is it possible to exclude transitive dependencies with Tycho (like it is possible to exclude transitive dependencies with Maven)?
>>>>
>>>> For example my main feature declares a dependency on Spring IDE:
>>>>
>>>> (feature.xml)
>>>>       <requires>
>>>> [...]
>>>>          <import feature="org.springframework.ide.eclipse.feature" version="2.7.2.201109122348-RELEASE"/>
>>>>
>>>>
>>>> In the feature.xml of org.springframework.ide.eclipse.feature there is:
>>>>       <includes
>>>>             id="org.springframework.ide.eclipse.uaa.feature"
>>>>             version="2.8.0.201110170010-RELEASE"
>>>>             optional="true"/>
>>>>
>>>> But when I build my product the org.springframework.ide.eclipse.uaa.feature is included and I can't find a way to exclude it.
>>>>
>>>> Any idea?
>>>>
>>>> Thanks,
>>>>
>>>> Julien
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>
>> _______________________________________________
>> 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
>
>
>


Back to the top