Update Maven to 3.9.3 on runners (including Ubuntu) #8034
-
Tool nameApache Maven Tool licenseApache License 2.0 Add or update?
Desired version3.9.3 or later Approximate sizeNo response Brief description of toolAs of version 4.0.0, the Eclipse Tycho plugin for Maven requires Maven 3.9.0 or later:
I know that Maven 3.9.0 broke some users' CI builds due to removing an outdated and vulnerable Maven was frozen at 3.8.8 in March. Now it is August, and this Maven 3.8.8 version is blocking some users' CI builds from updating Eclipse Tycho. Please consider updating Maven to 3.9.3 since affected plugin maintainers and users have had 5 months to fix their URL for tool's homepageNo response Provide a basic test case to validate the tool's functionality.No response Platforms where you need the tool
Runner images where you need the tool
Can this tool be installed during the build?No response Tool installation time in runtimeNo response Are you willing to submit a PR?No response |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 3 replies
-
@tuxji , while we evaluate the impact of update, can you help with justification whether such an update can (or cannot) be done by user himself ? we are afraid to introduce some breaking change for the majority of users |
Beta Was this translation helpful? Give feedback.
-
@tuxji you said do you know is there any ETA for a fix from plugin maintainer ? |
Beta Was this translation helpful? Give feedback.
-
I am aware of two ways users can update Maven by themselves. Neither way is ideal.
|
Beta Was this translation helpful? Give feedback.
-
I do not know how many plugins broke in March, how many plugins have been fixed by their maintainers since then, and how many plugins still remain broken 5 months later. This is the risk that needs to be evaluated by GitHub developers. |
Beta Was this translation helpful? Give feedback.
-
we tried to update maven two times and every time we drown in feedback "please get it back". can we stay with possibly non ideal, but working way updating maven directly in workflow ? |
Beta Was this translation helpful? Give feedback.
-
another idea is to use containers (maybe you already considered that). https://github.com/ilia-shipitsin/php-matrix/blob/main/.github/workflows/blank.yml#L7-L12 i.e. you can specify any docker image to run on (supported only for linux runners). |
Beta Was this translation helpful? Give feedback.
-
No, I had not known about this third way to update Maven in one's workflow. Using a Maven container broke my workflow's docker/build-push-action step, but the error message suggested calling docker/setup-buildx-action. I added that step to my workflow and the next job ran successfully, so using a Maven container can indeed be a solution for some workflows. I will close my request since the third way was good enough for me. For the benefit of other users who also want to try the third way, here it is: jobs:
integration:
strategy:
matrix:
distribution: [ temurin ]
java-version: [ 17 ]
maven-version: [ 3.9 ]
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
container:
image: maven:${{ matrix.maven-version }} |
Beta Was this translation helpful? Give feedback.
-
@tuxji , if we want to keep it for other users, shall we convert it to discussion ? |
Beta Was this translation helpful? Give feedback.
-
Yes, you may convert this issue to a discussion. |
Beta Was this translation helpful? Give feedback.
-
This reasoning is road to nowhere. Documentation clearly states: https://github.com/actions/runner-images#preinstallation-policy
https://github.com/actions/runner-images#default-version-update-policy
Instead of listen feedback and postpone update Maven forever, please
|
Beta Was this translation helpful? Give feedback.
-
Now nearly 6 months later and still nothing moved. |
Beta Was this translation helpful? Give feedback.
-
Eclipse Tycho 4.0.4 now requires Maven 3.9.4, so this request is already getting outdated. Thanks for sharing your hint at using the official https://hub.docker.com/_/maven instead. |
Beta Was this translation helpful? Give feedback.
-
What will be the policy going forward now with Maven? Will it stay at 3.8 forever? When have people with issues on Maven 3.9 had enough time to fix it? |
Beta Was this translation helpful? Give feedback.
-
There is also https://github.com/sdkman/sdkman-action for using a fixed version of Maven. |
Beta Was this translation helpful? Give feedback.
-
This issue was raised 01.08.2023. Runner Ubuntu was 5 months behind Maven development. Today is 07.10.2024. Runner Ubuntu is 19 months behind Maven development. What must happen to Runner Ubuntu follow Maven releases? 2 years overdue? 5 years? |
Beta Was this translation helpful? Give feedback.
-
Hi @michaldo , we are considering to update the maven to latest , right now we are checking the possibilities ,, Will update / raise an announcement soon . thanks |
Beta Was this translation helpful? Give feedback.
Hi @michaldo , we are considering to update the maven to latest , right now we are checking the possibilities ,, Will update / raise an announcement soon . thanks