incubator-stormcrawler icon indicating copy to clipboard operation
incubator-stormcrawler copied to clipboard

#1662 - Migrate to Maven 4

Open mvolikas opened this issue 1 year ago • 5 comments

#1662 Changes for Maven 4 compatibility following the official migration guidelines 1|2.

Steps followed:

  1. I started by installing Apache Maven 4.0.0-rc-4 locally.
  2. Used the built in upgrade tool (mvnup) to make the initial changes with mvnup apply --model-version 4.1.0 --all
  3. Removed as much explicit sub-module definitions as possible. Only two were really necessary because of the nested archetype modules.
  4. Followed the new conventions for parent inference.
  5. Built with Maven 4 and reviewed the generated targets including the new consumer POMs.

mvolikas avatar Nov 09 '25 15:11 mvolikas

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?

mvolikas avatar Nov 09 '25 15:11 mvolikas

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.

rzo1 avatar Nov 10 '25 21:11 rzo1

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?

rzo1 avatar Dec 23 '25 09:12 rzo1

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.

mvolikas avatar Dec 25 '25 15:12 mvolikas

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 avatar Jan 11 '26 16:01 mvolikas

@mvolikas do you still want to work on this?

jnioche avatar Oct 09 '26 14:10 jnioche

@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.

mvolikas avatar Oct 09 '26 15:10 mvolikas

So now on rc7 for testing purpose ;)

rzo1 avatar Oct 18 '26 13:10 rzo1

thanks @rzo1 , I was just merging main into this branch :-), but I guess what you pushed is fine too.

mvolikas avatar Oct 18 '26 13:10 mvolikas

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.

mvolikas avatar Oct 18 '26 13:10 mvolikas