eclipse-tycho / tycho

Tycho project repository (tycho)
https://tycho.eclipseprojects.io
Eclipse Public License 2.0
166 stars 189 forks source link

Build fails with tycho.scr issue #1517

Closed akurtakov closed 1 year ago

akurtakov commented 1 year ago

As it can be seen at https://ci.eclipse.org/platform/job/eclipse.platform/job/PR-222/1/console :

09:36:14.341 [ERROR] [f52f2537-bdfa-47df-b45b-d26cd4ee4abd][extension>org.eclipse.tycho:tycho-maven-plugin:3.1.0-SNAPSHOT] org.apache.felix.scr
org.osgi.framework.BundleException: Error starting module. osgi.identity; osgi.identity="org.apache.felix.scr"; type="osgi.bundle"; version:Version="2.2.2"; tags:List<String>="osgi.connect" [id=74]
    at org.eclipse.osgi.container.Module.doStart (Module.java:614)
    at org.eclipse.osgi.container.Module.start (Module.java:468)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run (ModuleContainer.java:1852)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute (EquinoxContainerAdaptor.java:136)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel (ModuleContainer.java:1845)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel (ModuleContainer.java:1788)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel (ModuleContainer.java:1750)
    at org.eclipse.osgi.container.SystemModule.startWorker (SystemModule.java:269)
    at org.eclipse.osgi.container.Module.doStart (Module.java:605)
    at org.eclipse.osgi.container.Module.start (Module.java:468)
    at org.eclipse.osgi.container.SystemModule.start (SystemModule.java:193)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start (EquinoxBundle.java:445)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start (EquinoxBundle.java:464)
    at org.eclipse.osgi.launch.Equinox.start (Equinox.java:139)
    at org.eclipse.sisu.osgi.connect.PlexusFrameworkConnectServiceFactory.getFramework (PlexusFrameworkConnectServiceFactory.java:145)
akurtakov commented 1 year ago

@laeubi Any idea ?

laeubi commented 1 year ago

It seems the version bump might be not complete?

https://github.com/eclipse-tycho/tycho/pull/1515

but the build do not fails completely here (just errors out) so I assume there are some conflicts between 2.2.2 and 2.2.4 version here.

laeubi commented 1 year ago

I just checked this but can't find any more felix.scr references in Tycho... so this is a bit strange where 2.2.2 is coming from...

akurtakov commented 1 year ago

Could it be from tycho-build which is 3.0.0 as we can't refer to snapshot in extension?

laeubi commented 1 year ago

Yeah maybe it becomes visible that way ... I'll try to exclude this dependency it is actually not required for the build extension I think.. beside that they should actually have different classloaders.