-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Maven Wrapper's sha256 property breaks on some systems #1578
Comments
Here's the issue on the Maven bugtracker. There are other issues reported for the sha256 feature (like this one or this one) which makes me think that this feature isn't ready for production yet. |
We're currently using With mode With mode With mode With mode |
I think we have those options:
|
This bug prevents proper usage of the
When using LF line endings, everything works. |
Until this is fixed, we can't add checksums to the properties file. |
In the meantime, I reverted the SHA256 feature in 9e26824. |
I've opened apache/maven-wrapper#158 which fixes the CLRF bug on Maven Wrapper side. With this change, we can use |
apache/maven-wrapper#158 has been merged, now we need to wait for a new maven wrapper release. |
Actually, I think there may be a problem with this. It looks like the current Maven Wrapper script that is generated for Maven 3.9.9, includes some logic starting at line 175 that will switch the downloaded file type from .zip to .tar.gz if the
unzip
command isn't found in the environment you are runningmvnw
on. (https://github.com/apache/maven-wrapper/blob/maven-wrapper-3.3.2/maven-wrapper-distribution/src/resources/only-mvnw#L175-L179)This means that the included SHA256 might be wrong when the download URL for the binaries for Maven gets switched to .tar.gz.
It ultimately seems like this might be a deficiency in the Maven wrapper, since it doesn't seem to me that you can specify SHA256 sums for both of the possible downloads that could occur (one for .tar.gz and one for .zip).
Originally posted by @cdelashmutt-pivotal in #1577 (comment)
The text was updated successfully, but these errors were encountered: