Skip to content

Core build fails with Maven 3.9.12 #5234

@holgerfriedrich

Description

@holgerfriedrich

Build fails:

Error:  Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.4.9:features-generate-descriptor (compile) on project org.openhab.core.features.karaf.openhab-core: 
Error:  The plugin org.apache.karaf.tooling:karaf-maven-plugin:4.4.9 has unmet prerequisites: 
Error:  	Required Java version 22 is not met by current version: 21.0.9
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.4.9:features-generate-descriptor (compile) on project org.openhab.core.features.karaf.openhab-tp: 
Error:  The plugin org.apache.karaf.tooling:karaf-maven-plugin:4.4.9 has unmet prerequisites: 
Error:  	Required Java version 22 is not met by current version: 21.0.9
Error:  -> [Help 1]

I have this issue with locally installed Maven 3.9.12 as well as with mvnw (if I change the properties file to 3.9.12).
Later versions seem to be affected as well, I tried 4.0.0-rc3 and rc5.

This is likely not a bug to be solved in OH, just wanted to mention that the issue is there.

Expected Behavior

build completes

Current Behavior

see above

Possible Solution

use Maven 3.9.11 (or mvnw with current configuration)

Steps to Reproduce (for Bugs)

build with newer Maven versions

Context

Your Environment

independent from OS, both happens in Win11 and on GH CI infrastructure

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions