-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCK: common module doesn't declare or inherit maven-compiler-plugin #214
Comments
From the top of my head, the original reason it doesn't inhert from the regular top-level pom is the fact that it would put Arquillian multiple times on the classpath in some circumstances (since this module is included with every other module again). These circumstances were somewhat obscure. Other TCK based multi-model maven projects do not avoid the parent though. |
In my local testing, I've been able to make some progress by modifying the |
Yes, let's update it. The original error was related to executing the tests from within the module folder vs from the root if I'm not mistaken. |
Dropped a PR for this issue as well. |
The Authentication TCK is a multi-module Maven project. Accordingly, the top-level pom uses the
<pluginManagement>
block to define the levels of various plugins, etc. that the rest of the project should use, including:The
common
module, which is the first one declared/processed in the top-level pom, neither declares a<parent>
(and thus doesn't inherit the version of compiler plugin defined there) nor defines its own usage of the compiler plugin. This results in Maven falling back on using its default levels (as defined inmaven-core.jar#META-INF/plexus/default-bindings.xml
). Prior to Maven 3.9.0, the default version of the maven-compiler-plugin is the ancient 3.1, which doesn't recognize<maven.compiler.release>17
as a viable option. This results in the following failure:The
common
module needs to be updated to either a) inherit the top-level pom's plugins, b) define its own usage of the maven-compiler-plugin to a level that supports Java 17, or c) enforce a minimum Maven version of 3.9.0 (which bumps the default version of the compiler plugin to 3.11.0) instead of 3.8.6.The text was updated successfully, but these errors were encountered: