Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Unresolved dependency after migration from Tycho 12.0 to 14.1

Step 1 is the computation of the target platform, which may include resolving target files and loading the p2 repositories configured in the POM. In case of p2 repos in the POM, there may be a very large number of artifacts in the target platform.

Therefore there is a step "1.5", which is the p2 resolution of the project dependencies (and this step is always done, and this is intentional). This leads to a reasonably small list of artifacts. These "dependency artifacts" are downloaded and fed into step "2", the Equinox OSGi resolver (for computing the compile class path).

If p2 was perfect, step 2 would never fail. But due to bugs like [1] you may see problems like the one you have.

Regards
Tobias


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=360659 

> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
> Sent: Freitag, 8. Juni 2012 04:23
> To: tycho-user@xxxxxxxxxxx
> Subject: Re: [tycho-user] Unresolved dependency after migration from Tycho
> 12.0 to 14.1
> 
> I'd say this is a bug. When build target platform is defined using
> .target file, Tycho is expected to
> 
> 1. collect bundles and features as configured by .target file
> 2. feed collected bundles to OSGi resolver
> 
>  From what I can tell, Tycho "resolves" (in p2 sense of the word) project
> dependencies between steps 1 and 2 and this causes problems because p2
> does not support OSGi attribute matching.
> 
> @Tobias do you remember why we do this additional p2 resolution when?
> 
> I've attached a workaround that should work with 0.14.1 and 0.15.
> 
> --
> Regards,
> Igor
> 
> On 12-06-06 3:39 AM, Carsten Hilber wrote:
> > Hi Igor,
> > it took a while to reproduce the behavior in a standalone project.
> 0.15.0 is showing the same result, here is the standalone project:
> >
> > git://github.com/chilber/dep-test-master.git
> >
> > Thanks in advance for having a look.
> > Regards,
> > Carsten
> >
> > -----Ursprüngliche Nachricht-----
> > Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] Im Auftrag von Igor Fedorenko
> > Gesendet: Donnerstag, 19. April 2012 15:24
> > An: tycho-user@xxxxxxxxxxx
> > Betreff: Re: [tycho-user] Unresolved dependency after migration from
> Tycho 12.0 to 14.1
> >
> > Can you try if 0.15.0-SNAPSHOT works better? If not, please provide
> sample standalone project that demonstrates the problem and we'll have a
> look.
> >
> > --
> > Regards,
> > Igor
> >
> > On 12-04-19 8:11 AM, Carsten Hilber wrote:
> >> Hi guys,
> >>
> >> weam migrating a manifest first build with a target based platform
> >> resolution from Tycho 12.0 to 14.1. (Same effect can be seen on 13.0).
> >> After migrating the build seems to miss the dependency org.eclipse.ui
> >> although it is found and resolved earlier in the p2 repo. Here's a
> >> snippet of the debug output. In the full output you can also see that
> >> the previous resolved bundles are having the same behavior that Ben
> >> Abernathy described. For some reason the bundle which is not resolved
> >> correctly is considered as System bundle == 1. Maybe that helps.
> >>
> >> .
> >>
> >> RESOLVED org.eclipse.ui.workbench_3.5.2.M20100113-0800 :
> >> C:\neo\ext\m2repo\p2\osgi\bundle\org.eclipse.ui.workbench\3.5.2.M20100
> >> 113-0800\org.eclipse.ui.workbench-3.5.2.M20100113-0800.jar
> >>
> >> RESOLVED org.eclipse.ui.forms_3.4.1.v20090714_35x :
> >> C:\neo\ext\m2repo\p2\osgi\bundle\org.eclipse.ui.forms\3.4.1.v20090714_
> >> 35x\org.eclipse.ui.forms-3.4.1.v20090714_35x.jar
> >>
> >> .
> >>
> >> NOT RESOLVED net.neobp.neo.nms.sup.windows.view_1.0.0.qualifier :
> >> C:\Users\cahi\git\neo-nms-sup-windows\net.neobp.neo.nms.sup.windows.pa
> >> rent\net.neobp.neo.nms.sup.windows.view
> >>
> >> Missing Constraint: Import-Package: org.eclipse.ui; version="0.0.0"
> >>
> >> Missing Constraint: Import-Package: org.eclipse.ui.part;
> version="0.0.0"
> >>
> >> [ERROR] Internal error: java.lang.RuntimeException:
> >> org.osgi.framework.BundleException: Bundle
> >> net.neobp.neo.nms.sup.windows.view cannot be resolved
> >>
> >> I'll attach the full debug log, I am happy for any hint.
> >>
> >> Thanks
> >>
> >> Carsten
> >>
> >>
> >>
> >> _______________________________________________
> >> 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