Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Enforcing package version constraints

Is there a way for the TP to exclude an artifact?

Our TP includes the version of m2eclipse that was contributed to the Mars release train, which requires com.google.guava [14.0.1,16.0.0).  Although we could include the most recent release of m2e in our TP, I'm fairly sure that our users still using Mars will be using the m2e contributed on the release train.  Maintaining a testing TP and a development TP doesn't sound like much fun, especially since we're maintaining a TP for each release train already.

Brian.

> On 13-Nov-2017, at 9:10 PM, Pascal Rapicault <pascal@xxxxxxxxxxxxx> wrote:
> 
> How about properly crafting your target platform to include Guava 20 instead of Guava 15 so PDE generates the right input?
> 
> 
> On 11/13/2017 4:35 PM, Brian de Alwis wrote:
>> We're trying to use `Import-Package` in our bundles.  PDE's quick-fixes for adding an import-package helpfully provides a `version` constraint where possible, but it uses the lowest version available in the target platform.  So when developing against a TP for Eclipse Mars, where m2eclipse pulls in Guava 15, all com.google.common.* packages are added with version "15.0.0".  Since we use Guava 20, we have to remember to change any such version constraints be "[20,21)".  Such is life.
>> 
>> Except I'm old and frequently forget to change these package versions and so would like some way to catch these uses at build time.  They aren't caught by the Maven dependency plugin's enforcer as Tycho/p2 resolves the dependencies and selects Guava 20 for the reactor.
>> 
>> Anybody know of any solutions?  I suppose even a grep-for-pattern would work (e.g., `com.google.common.*;version="15.0.0"` would work for this particular case); I wonder if ant has something…
>> 
>> Brian.
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
> 
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top