-
Notifications
You must be signed in to change notification settings - Fork 747
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
How to get a newer maven version alongside JDK 17 #685
Comments
Hello @ghoshbishakh, Thank you for creating this issue and we will look into it :) |
Hi @ghoshbishakh, To use Maven version 3.9.9 alongside JDK 17, Maven needs to be manually installed since the ubuntu-latest runner image comes with Maven 3.8.8 by default. For reference, please visit https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md.
|
Thanks a lot @gowridurgad . I will try it out. |
I think this should be reopened: 3.8.8 is not compatible with Java 17-based tools (fixed in apache/maven#1286 in 3.9.6), so it is important to be running a newer version. |
Hi @jglick, We are able to use Maven version 3.8.8 alongside JDK 17. Attached a screenshot for your reference. However, if you need to use Maven 3.9.x, you can manually install it in your GitHub Actions workflow. |
The difference here will be a Maven plugin compiled with Java 17. Before the fix in 3.9.6 Maven could build Java 17 projects but couldn't use Maven plugins with bytecode newer than Java 14. |
Using Maven Wrapper is the easiest way to enforce a specific Maven version on most operating systems. |
Description:
After setting up JDK 17, the maven version we get is
3.8.8
We want to get the latest maven version,
3.9.x
Here is the workflow:
Task version:
v4
Platform:
Runner type:
The text was updated successfully, but these errors were encountered: