Skip to content
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

GH-2952: Add maven wrapper #2953

Merged
merged 2 commits into from
Aug 28, 2024
Merged

GH-2952: Add maven wrapper #2953

merged 2 commits into from
Aug 28, 2024

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Jul 13, 2024

Rationale for this change

Having a maven wrapper in the project removes the burden for users to have maven installed on their system.
The wrapper was added by running mvn wrapper:wrapper

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@nastra
Copy link
Contributor Author

nastra commented Jul 13, 2024

As a next step (please let me know if that should be within this PR) I was planning to update all mvn references in the codebase to ./mvnw

@wgtmac
Copy link
Member

wgtmac commented Jul 13, 2024

This looks nice. However, my concern is the maintenance burden of the new script.

@julienledem @gszadovszky WDYT?

@joyCurry30
Copy link
Contributor

Missing mvnw.cmd

@Fokko Fokko added this to the 1.15.0 milestone Jul 13, 2024
@nastra
Copy link
Contributor Author

nastra commented Jul 15, 2024

This looks nice. However, my concern is the maintenance burden of the new script.

@julienledem @gszadovszky WDYT?

@wgtmac typically this script doesn't require any maintenance and will be updated automatically when updating the underlying maven version through the wrapper. That doesn't mean that every maven version bump requires an updated script, just that the wrapper task will update the script if necessary

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is nice, but I'll leave this open for others to chime in as well 👍

# ----------------------------------------------------------------------------

# ----------------------------------------------------------------------------
# Apache Maven Wrapper startup batch script, version 3.3.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it copied from somewhere else? It would be good if a link is provided so we can keep it updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's being generated and will be automatically updated (if necessary) when updating the underlying maven version of the wrapper

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you run mvn wrapper:wrapper against master you'll get the same scripts generated

Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @nastra!

@Fokko Fokko merged commit bc4e5b4 into apache:master Aug 28, 2024
9 checks passed
Fokko pushed a commit to Fokko/parquet-mr that referenced this pull request Aug 28, 2024
* apacheGH-2952: Add maven wrapper

* Update mvn references to ./mvnw
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.

4 participants