Skip to content

Conversation

@chrjohn
Copy link
Contributor

@chrjohn chrjohn commented Oct 27, 2025

... to eliminate the need to install a specific Maven version locally.

@tomaswolf
Copy link
Member

What about line endings? Force LF for mvnw and CR-LF for mvnw.cmd on checkout via .gitattributes? Also we should ensure in the assembly project that these two files get the right line endings when archived.

What line endings do the properties need? Will they work if it's LF-only on Windows?

@chrjohn
Copy link
Contributor Author

chrjohn commented Oct 28, 2025

I'll look into the attributes stuff.

As for the properties: I cannot test this on Windows but I have a similar setup on the QuickFIX/J project where the wrapper works fine in github actions on Linux and Windows. https://github.com/quickfix-j/quickfixj/blob/master/.github/workflows/maven.yml

@chrjohn chrjohn marked this pull request as draft October 28, 2025 09:09
@chrjohn chrjohn marked this pull request as ready for review October 28, 2025 15:15
@tomaswolf
Copy link
Member

Works as intended on Windows in cmd.exe and in git bash; works well on Mac. Scripts have the correct line endings in the source archives produced in the assembly project.

This look good. Please squash the commits into one, and give it a good commit message. Then this is ready to go in.

Thanks a lot!

Add mvnw scripts and ensure that they are included in the
distribution. Ensure line endings are correct on Unix and
Windows.
@chrjohn chrjohn changed the title added Maven Wrapper Added Maven Wrapper Nov 5, 2025
@chrjohn chrjohn changed the title Added Maven Wrapper Add Maven Wrapper Nov 5, 2025
@chrjohn
Copy link
Contributor Author

chrjohn commented Nov 5, 2025

@tomaswolf could you please check if it is OK. Probably my last merge messed things up?

@tomaswolf
Copy link
Member

Probably my last merge messed things up?

Yes, it did :-) Just check-out your squash commit e82a9d3 and force-push it onto your chrjohn:mvn-wrapper branch (i.e., the mvn-wrapper branch in your fork). That should fix it: we should end up with this PR being updated and having only the single commit e82a9d3.

The squash itself worked fine.

@chrjohn
Copy link
Contributor Author

chrjohn commented Nov 5, 2025 via email

@tomaswolf
Copy link
Member

Shall I do it?

@chrjohn
Copy link
Contributor Author

chrjohn commented Nov 5, 2025 via email

@tomaswolf
Copy link
Member

Done :-)

@chrjohn
Copy link
Contributor Author

chrjohn commented Nov 5, 2025

Done :-)

Thank you. :)

@tomaswolf tomaswolf merged commit e82a9d3 into apache:master Nov 5, 2025
7 checks passed
@chrjohn chrjohn deleted the mvn-wrapper branch November 5, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants