Repository navigation
tycho-sbom:generator in 5.0.x no longer works on Java 21: default generator repository is the rolling p2-sbom nightly, which now requires JavaSE-25 #6555
Description
Duplicate check
- I have searched for existing issues/discussions and could not find a duplicate.
What happened?
tycho-sbom:generator fails on JDK 21 since 2026-11-20, before any SBOM work starts. Nothing changed on our side.
GeneratorMojo installs the generator from the rolling nightly composite unless generatorRepository is set. The URI is hard-coded, and the product is added without a version constraint (same on tycho-5.0.4, tycho-5.0.x and main):
MavenRepositoryLocation repository = EclipseApplicationManager.getRepository(generatorRepository,
URI.create("https://download.eclipse.org/cbi/updates/p2-sbom/products/nightly/"));
application.addProduct("org.eclipse.cbi.p2repo.sbom.cli.product");The composite keeps only the five newest builds. All five (N202609200841 to N202611201416) require org.eclipse.equinox.security.linux 1.2.0.v20260914-1851, which needs osgi.ee=JavaSE version 25. The last build that still runs on Java 21 dropped out on 2026-11-20. Before that, our builds only logged a Problems resolving provisioning plan warning for the same bundle and then worked.
EclipseApplicationFactory resolves with JavaSE-<Runtime.version().feature()>, so on JDK 21 (the documented minimum for Tycho 5) the default configuration of every 5.x release can no longer resolve the generator. The requirement is filtered to osgi.os=linux, so this hits Linux builds.
Pointing generatorRepository at a self-assembled copy of an older nightly (N202601211146) works as a workaround. Evicted nightlies are deleted from download.eclipse.org, though, so this only works for users who still have one cached.
Possible fixes:
- On 5.0.x, default to a fixed, Java 21-compatible generator build instead of the rolling nightly.
- Have CBI keep a release stream, or archive old nightlies, so the generator can be pinned.
- Document the default of
generatorRepositoryand its Java requirement on the goal page.
Steps to reproduce / minimal project
Tycho's own SbomPluginTest (testBuildWithProfile, testCLIInvocation) fails on tycho-5.0.x / ubuntu-latest / JDK 21 with exactly this error since nightly N202611201416 appeared: https://github.com/eclipse-tycho/tycho/actions/runs/45157631358. The run from 2026-11-20 06:47 UTC (44690312373) did not have it yet. macOS passes because the requirement is filtered to osgi.os=linux.
Outside Tycho:
- On Linux, with JDK 21 and Maven 3.9.x, use any build that binds the goal without
generatorRepository:<plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-sbom-plugin</artifactId> <version>5.0.4</version> <executions> <execution> <id>generate-sbom</id> <phase>verify</phase> <goals><goal>generator</goal></goals> <configuration> <installation>${project.build.directory}/products/my.product/linux/gtk/x86</installation> </configuration> </execution> </executions> </plugin>
- Run
mvn verify. The goal fails while resolving the generator itself, so the content ofinstallationdoesn't matter.
Full error output / stack trace
[INFO] --- tycho-sbom:5.0.4:generator (generate-sbom) @ <product> ---
[INFO] Adding repository https://download.eclipse.org/cbi/updates/p2-sbom/products/nightly
[INFO] Calling application with arguments: [-application, org.eclipse.cbi.p2repo.sbom.generator, -consoleLog, -verbose, -xml-output, <target>/<product>.xml, -json-output, <target>/<product>.json, -index, <target>/index.html, -cache, <m2>/.cache/tycho/.sbom, -installation, <target>/products/<product>/linux/gtk/x86, -central-search, -process-bundle-classpath, -advisory, -content-redirections, https://repo.maven.apache.org/maven2/-><internal mirror>/]
[ERROR] org.eclipse.equinox.security.linux 1.2.0.v20260914-1851 requires Execution Environment that matches (&(osgi.ee=JavaSE)(version=25)) but the current resolution context uses [a.jre.javase 21.0.0]
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64, org.eclipse.update.install.sources=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.eclipse.cbi.p2repo.sbom.cli.product 0.1.0.v20260928-0506
[ERROR] Missing requirement for filter properties ~= $0: org.eclipse.equinox.security.linux 1.2.0.v20260914-1851 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=25)), filter=(!(org.eclipse.equinox.p2.disable.require.capability.osgi.ee=true))' but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product 0.1.0.v20260920-0826 depends on: org.eclipse.equinox.p2.iu; org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group [0.1.0.v20260920-0826,0.1.0.v20260920-0826]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product 0.1.0.v20260928-0506 depends on: org.eclipse.equinox.p2.iu; org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group [0.1.0.v20260928-0506,0.1.0.v20260928-0506]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product 0.1.0.v20261023-0643 depends on: org.eclipse.equinox.p2.iu; org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group [0.1.0.v20261023-0643,0.1.0.v20261023-0643]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product 0.1.0.v20261027-1655 depends on: org.eclipse.equinox.p2.iu; org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group [0.1.0.v20261027-1655,0.1.0.v20261027-1655]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product 0.1.0.v20261114-0556 depends on: org.eclipse.equinox.p2.iu; org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group [0.1.0.v20261114-0556,0.1.0.v20261114-0556]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group 0.1.0.v20260920-0826 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.7.1300.v20260914-1851,1.7.1300.v20260914-1851]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group 0.1.0.v20260928-0506 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.7.1300.v20260928-0506,1.7.1300.v20260928-0506]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group 0.1.0.v20261023-0643 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.7.1300.v20261023-0643,1.7.1300.v20261023-0643]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group 0.1.0.v20261027-1655 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.7.1300.v20261023-0643,1.7.1300.v20261023-0643]
[ERROR] Cannot satisfy dependency: org.eclipse.cbi.p2repo.sbom.cli.product.feature.feature.group 0.1.0.v20261114-0556 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.7.1300.v20261114-0556,1.7.1300.v20261114-0556]
[ERROR] Cannot satisfy dependency: org.eclipse.equinox.p2.core.feature.feature.group 1.7.1300.v20260914-1851 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.security.linux [1.2.0.v20260914-1851,1.2.0.v20260914-1851], filter=(osgi.os=linux)
[ERROR] Cannot satisfy dependency: org.eclipse.equinox.p2.core.feature.feature.group 1.7.1300.v20260928-0506 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.security.linux [1.2.0.v20260914-1851,1.2.0.v20260914-1851], filter=(osgi.os=linux)
[ERROR] Cannot satisfy dependency: org.eclipse.equinox.p2.core.feature.feature.group 1.7.1300.v20261023-0643 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.security.linux [1.2.0.v20260914-1851,1.2.0.v20260914-1851], filter=(osgi.os=linux)
[ERROR] Cannot satisfy dependency: org.eclipse.equinox.p2.core.feature.feature.group 1.7.1300.v20261114-0556 depends on: org.eclipse.equinox.p2.iu; org.eclipse.equinox.security.linux [1.2.0.v20260914-1851,1.2.0.v20260914-1851], filter=(osgi.os=linux)
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-sbom-plugin:5.0.4:generator (generate-sbom) on project <product>: org.eclipse.tycho.DependencyResolutionException: Cannot resolve dependencies of null: See log for details -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-sbom-plugin:5.0.4:generator (generate-sbom) on project <product>: org.eclipse.tycho.DependencyResolutionException: Cannot resolve dependencies of null
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:919)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:285)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:207)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke (Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
Caused by: org.apache.maven.plugin.MojoExecutionException: org.eclipse.tycho.DependencyResolutionException: Cannot resolve dependencies of null
at org.eclipse.tycho.sbom.plugin.GeneratorMojo.execute (GeneratorMojo.java:238)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
... (same Maven frames as above)
Caused by: org.eclipse.tycho.DependencyResolutionException: Cannot resolve dependencies of null
at org.eclipse.tycho.p2resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:242)
at org.eclipse.tycho.p2resolver.P2ResolverImpl.resolveTargetDependencies (P2ResolverImpl.java:125)
at org.eclipse.tycho.osgi.framework.EclipseApplication.resolveBundles (EclipseApplication.java:106)
at org.eclipse.tycho.osgi.framework.EclipseApplication.getApplicationBundles (EclipseApplication.java:92)
at org.eclipse.tycho.osgi.framework.EclipseApplication.startFramework (EclipseApplication.java:235)
at org.eclipse.tycho.sbom.plugin.GeneratorMojo.execute (GeneratorMojo.java:226)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
... (same Maven frames as above)
Caused by: org.eclipse.tycho.p2.resolver.ResolverException: See log for details
at org.eclipse.tycho.p2resolver.ProjectorResolutionStrategy.resolve (ProjectorResolutionStrategy.java:119)
at org.eclipse.tycho.p2resolver.AbstractResolutionStrategy.resolve (AbstractResolutionStrategy.java:55)
at org.eclipse.tycho.p2resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:232)
at org.eclipse.tycho.p2resolver.P2ResolverImpl.resolveTargetDependencies (P2ResolverImpl.java:125)
at org.eclipse.tycho.osgi.framework.EclipseApplication.resolveBundles (EclipseApplication.java:106)
at org.eclipse.tycho.osgi.framework.EclipseApplication.getApplicationBundles (EclipseApplication.java:92)
at org.eclipse.tycho.osgi.framework.EclipseApplication.startFramework (EclipseApplication.java:235)
at org.eclipse.tycho.sbom.plugin.GeneratorMojo.execute (GeneratorMojo.java:226)
... (same Maven frames as above)Tycho version
5.0.4
Environment (OS, JDK, Maven version)
Linux x86_64 (Jenkins agent), JDK 21, Maven 3.9.12
Was an AI/GenAI agent used to prepare this issue?
Yes, and I have reviewed all content above for accuracy
🤖 Drafted with Claude Code (Claude Opus 5.5), interactive session. Reviewed and confirmed by @janosch24 before submission.
Activity
akurtakov commentedon Nov 24, 2026
@merks #6556 fails due to this one too. If you say using sbom requires Java 25 - so be it.
merks commentedon Nov 24, 2026
Yes sorry. I was not under the impression that I needed to maintain compatibility with older LTS versions of Java despite the latest versions of the dependencies updating to the latest LTS version.
In principle I could of course produce releases to capture older versions with older dependencies. And Tycho could allow consumers to specify using the older version.
I wonder though if those consumers who want this are willing to sponsor all that?
merks commentedon Nov 25, 2026
This morning I was thinking that the generator support
<generatorRepository>which points to the product repository by default. But there are actually two update sitesThe later includes the closure of all dependencies so is convenient to use. But it includes the Platform which now requires Java 25. The former is just the generator and can be combined (used with) a Platform repository for an older version of the Platform that still runs on Java 25. So in principle it's possible for the consumer to create a composite of the tools repository and a Platform repository and specify that for
<generatorRepository>.It's also possible for me to include a JustJ JRE in the product, i.e., a Java 25 JRE. That might solve the problem too...
I imagine that most folks wanting nn SBOM are producing a commercial product and might be in a position to share a tiny fraction of the benefit they get from open source back to the projects that serve them...
akurtakov commentedon Nov 25, 2026
Unless someone steps up to handle it differently. I'll just move 5.0 to use Java 25 to run the tests with and accept no one cares enough to take care of still running sbom on Java 21.
laeubi commentedon Nov 25, 2026
We can simply disable the sbom test for Tycho 5, I won't bother to make Tycho 5 line anywhere "java 25 compatible" and it will only hide possible problems unless we decide to do a 5.1.x line where we want to require java 25 at a minimum version.