>>>>> Steinar Bang <[email protected]>:

> I got a build failure in github actions yesterday:
> Error:  Failed to execute goal 
> org.apache.karaf.tooling:karaf-maven-plugin:4.4.9:features-generate-descriptor
>  (generate-features-file) on project authservice.definitions: 
> 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 am running java 21.0.4 locally, and haven't had any issues in local
> maven builds since I bumped karaf from 4.4.8 to 4.4.9.

> And I have also had many builds not fail on github actions with a java
> 21 build image, since I switched.

dependabot has upgraded many dependencies today and I have seen this
failure in some CI builds but not in all.

But in all PR merges I have done of the dependabot upgrade the github
actions CI builds have failed.

> So I am kinda wondering where this error is coming from...?

I guess I could fix this by bumping the JDK used in the github actions
builds to 25, but:

I think this is caused by some change in github actions that happened
sometime during today and not caused by what the error message actually
says, since I have been building with java 21 locally and on github
actions since May 29 2025 and karaf 4.4.9 since December 15 2025 and not
seen this problem until today.

Also: if building with Java 25 I would possibly need Java 25 to run the
results...? (I guess I could build with <release>21</release> in
maven-compiler-plugin even if using Java 25, but that always feels a bit
wrong)

I will switch to Java 25 but I hadn't planned to do so right now.

Reply via email to