.github/4.x-release.yml has java-version: '21', but pom.xml has <maven.compiler.source>1.8</maven.compiler.source>. This causes local build failures. Instead, the pom should be the following, which matches the github build.
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
.github/4.x-release.yml has
java-version: '21', but pom.xml has<maven.compiler.source>1.8</maven.compiler.source>. This causes local build failures. Instead, the pom should be the following, which matches the github build.