You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
I am building RPM through rpm-maven-plugin and packaging another packaged single FAT jar file. The jar is executable and its running file when manually copy past to Linus box. Its getting failed when running after installing the RPM build through rpm-maven-plugin. Its giving error message "invalid file (bad magic number): Exec format error"
When I tried to run through Java -jar installed-app.jar its says Caused by: java.lang.IllegalStateException: Unable to open nested entry 'BOOT-INF/lib/antlr-2.7.7.jar'. It has been compressed and nested jar files must be stored without compression. Please check the mechanism used to create your executable jar file
It seems jar is getting either compressed or repackaged with other format. How can I ensure my executable jar is getting stored in RPM without any compression or repackaging?
The text was updated successfully, but these errors were encountered:
@BenEfrati that seems to be the solution, atleast when i had this issue disabling repackJars helped with the spring boot error. Also it speeds up the rpm generation time which makes sense not to compress an already compressed file as we are not going to gain much out of it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am building RPM through rpm-maven-plugin and packaging another packaged single FAT jar file. The jar is executable and its running file when manually copy past to Linus box. Its getting failed when running after installing the RPM build through rpm-maven-plugin. Its giving error message "invalid file (bad magic number): Exec format error"
When I tried to run through Java -jar installed-app.jar its says Caused by: java.lang.IllegalStateException: Unable to open nested entry 'BOOT-INF/lib/antlr-2.7.7.jar'. It has been compressed and nested jar files must be stored without compression. Please check the mechanism used to create your executable jar file
It seems jar is getting either compressed or repackaged with other format. How can I ensure my executable jar is getting stored in RPM without any compression or repackaging?
The text was updated successfully, but these errors were encountered: