We wanted to upgrade our projects to Maven 3.9.12 and noticed an issue with Xtext Maven plugin. Our projects use Java 11 and Xtext 2.37, which would build just fine with Maven 3.9.11. The newer Maven versions will enforce the required Java version set in a plugins descriptor. For Xtext 2.37 it is seems to be autodetected and set to Java 17. Which did not seem right, because our projects build with Java 11 just fine.
I would like to suggest to add the "requiredJavaVersion" property of the "maven-plugin-plugin" configuration to a dedicated value instead of the default value "auto". So in future it is always clear what Java version is required by the Xtext Maven plugin.
We wanted to upgrade our projects to Maven 3.9.12 and noticed an issue with Xtext Maven plugin. Our projects use Java 11 and Xtext 2.37, which would build just fine with Maven 3.9.11. The newer Maven versions will enforce the required Java version set in a plugins descriptor. For Xtext 2.37 it is seems to be autodetected and set to Java 17. Which did not seem right, because our projects build with Java 11 just fine.
I would like to suggest to add the "requiredJavaVersion" property of the "maven-plugin-plugin" configuration to a dedicated value instead of the default value "auto". So in future it is always clear what Java version is required by the Xtext Maven plugin.