-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-19798. Add Maven Wrapper #8221
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
base: trunk
Are you sure you want to change the base?
Conversation
steveloughran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key issue is the checksum; we need it
| @@ -0,0 +1,4 @@ | |||
| wrapperVersion=3.3.4 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an apache header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
| import java.nio.file.StandardCopyOption; | ||
| import java.util.concurrent.ThreadLocalRandom; | ||
|
|
||
| public final class MavenWrapperDownloader { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: move to hadoop normal indentation.
Assuming it came from another project, say where it came from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatted.
it, mvnw, mvnw.cmd, and maven-wrapper.properties are generated by mvn wrapper:wrapper -Dtype=source
BUILDING.txt
Outdated
| * Unix System | ||
| * JDK 17 | ||
| * Maven 3.3 or later | ||
| * Maven 3.9.11 or later (optional if using ./mvnw) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
say "a compatible version is automatically downloaded if..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
BUILDING.txt
Outdated
| * Windows 10 | ||
| * JDK 17 | ||
| * Maven 3.3 or later (maven.apache.org) | ||
| * Maven 3.9.11 or later (maven.apache.org, optional if using mvnw.cmd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
| wrapperVersion=3.3.4 | ||
| distributionType=source | ||
| distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip | ||
| wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add sha 256 sum in wrapperSha256Sum. The scripts both check it and I don't want unverified binaries being downloaded & executed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added.
Description of PR
Add Maven Wrapper (
mvnw) as an alternative tomvn, so that developers don't need to worry about Maven version selection and installation.How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?AI Tooling
No AI usage.