I don't know how to change the version of org.apache.felix maven-bundle-plugin .
I configure it, but it has no version.
It is coming from somewhere and is in my .m2/repository/org/apache/felix/
which has jar files from felix-parent, utils, scr.generator, scr.annotations,maven-bundle-plugin, bundlerepository,
maven-scr-plugin...
Looking at the change log of maven-bundle-plugin - https://github.com/apache/felix-dev/blob/master/tools/maven-bundle-plugin/changelog.txt
The latest release 6.0.0 needs minimum java 17 so to resolve the issue you would need to update the maven-bundle-plugin to 5.1.9 or lower in the parent pom.xml.
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>com.xxx.xxx</Bundle-SymbolicName>
<Sling-Model-Packages>
com.xxxx.models
</Sling-Model-Packages>
<!-- <Embed-Dependency>json|nimbus-jose-jwt|tink;scope=compile;inline=true</Embed-Dependency> -->
<Embed-Dependency>json</Embed-Dependency>
</instructions>
</configuration>
</plugin>
Also if you are curious to learn more about this, do check out the announcement in adapt to - https://adapt.to/2024/schedule/aem-65-and-java-17
Thanks
Narendra