|Re: [eclipse.org-planning-council] [platform-dev] Unsigned Content?|
_______________________________________________On Fri, Dec 17, 2021 at 9:11 AM Ed Merks <ed.merks@xxxxxxxxx> wrote:Here is what happens when the installer tries to install org.mockito.mockito-core into a Platform SDK IDE:
java.lang.NullPointerExceptionWhy? Because org.eclipse.equinox.internal.p2.engine.phases.CheckTrust.completePhase(IProgressMonitor, IProfile, Map<String, Object>) knows the profile, but the certificate checker doesn't know to check that profile but rather checks the self profile. I imagine the p2 director will have such problems too, or perhaps it will not fail but also might not actually check the correct profile...
Such feedback is really welcome. Can you please open a dedicated bug for this issue and add me as CC ?I wonder though if n projects have to duplicate the effort n times if that will be n times the work.The effort of consuming upstream artifacts from Maven is equivalent to the effort of consuming artifacts from Orbit. So there is no extra effort involved for consumers, they just change a version in their .target and that's all."Downstream" projects can also directly consume bundles provided by their "upstream" ones in a plain p2 way. For example, a project that need mockito can just take Mockito from Platform instead of Orbit, without playing with Maven dependencies. It's actually already a common and efficient: may target files don't reference Orbit and pick the libs that's provided by their "upstream".Also, might we end up with n versions of each such bundle?We already do have N versions of several libs, split across multiple repositories (eg some older projects don't rebuild against latest Orbit and still include older libs). p2 -during SimRel aggregation or installation on user end- does take care of picking the best and tries to avoid multiple versions when this can be avoided.Consuming libs from Maven instead of Orbit doesn't really change the problem/solution in the end.
platform-dev mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev
Back to the top