#1662 - Migrate to Maven 4
#1662 Changes for Maven 4 compatibility following the official migration guidelines 1|2.
Steps followed:
- I started by installing Apache Maven 4.0.0-rc-4 locally.
- Used the built in upgrade tool (mvnup) to make the initial changes with
mvnup apply --model-version 4.1.0 --all - Removed as much explicit sub-module definitions as possible. Only two were really necessary because of the nested archetype modules.
- Followed the new conventions for parent inference.
- Built with Maven 4 and reviewed the generated targets including the new consumer POMs.
In some POMs we're using tabs for indentation, while in others we have double spaces. Should we agree on a common style and update them?
Thx. Can we update the action to run with an actual Maven 4 binary? Most likely other ASF projects are doing it similar or https://github.com/s4u/setup-maven-action?tab=readme-ov-file or alike are already Maven 4 ready?
I have no preference regarding formatting.
In some POMs we're using tabs for indentation, while in others we have double spaces. Should we agree on a common style and update them?
I am fine with it. I think we have checkstyle enabled, so maybe something for it to cover?
In some POMs we're using tabs for indentation, while in others we have double spaces. Should we agree on a common style and update them?
I am fine with it. I think we have checkstyle enabled, so maybe something for it to cover?
That's a good point. I will have a look.
In some POMs we're using tabs for indentation, while in others we have double spaces. Should we agree on a common style and update them?
I am fine with it. I think we have checkstyle enabled, so maybe something for it to cover?
That's a good point. I will have a look.
Taken care of in #1776
@mvolikas do you still want to work on this?
@mvolikas do you still want to work on this?
Yes :-). From what I see the official release is not out, but they have been changes and 2 subsequent RCs, which are worth trying.
So now on rc7 for testing purpose ;)
thanks @rzo1 , I was just merging main into this branch :-), but I guess what you pushed is fine too.
The generated targets are still looking good with <modelVersion>4.0.0</modelVersion> as expected in the consumer POMs. In addition, RC-6 and RC-7 do not seem to require extra changes from what I see.