-
Notifications
You must be signed in to change notification settings - Fork 49
Respect order of META-INF/ and META-INF/MANIFEST.MF entries in a JAR file #189
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
Conversation
we need a MJAR issue, because the issue in MNG is triggered by MJAR, with its root cause here in plexus-archiver... I don't know if we can add a unit test |
I think this issue is everywhere, WAR, shade, assembly, compiler, javadoc, sources and maybe others. |
I think a test is possible since you can use the commons-compress to open a JAR and check for order. I wouldn't be able to create the test next week. Maybe end of. Maybe someone else can provide it? |
There is existing test that verifies whether the archive contains |
The insertion order did not take into account that META-INF/ and/or META-INF/MANIFEST.MF can or should come first. The code has added it META-INF/ to directories, thus the actual order of a JAR file was: META-INF/MANIFEST.MF META-INF/ META-INF/maven which does not make sense. Test supplied by: Plamen Totev <[email protected]> This closes #189
0e3ab97
to
1d2b764
Compare
Thank you, the test is simple and does exactly what we need. |
Related: Zlika/reproducible-build-maven-plugin#16 The jar tool also adds |
It is unfortunate that Oracle failed to officially specify that. |
The insertion order did not take into account that META-INF/ and/or
META-INF/MANIFEST.MF can or should come first. The code has added it
META-INF/ to directories, thus the actual order of a JAR file was:
META-INF/MANIFEST.MF
META-INF/
META-INF/maven
which does not make sense.