Closed alexbudarov closed 4 years ago
forum: https://www.cuba-platform.com/discuss/t/uberjar-creates-app-jar-with-0-byte-manifest-mf/12349/3
reproduced by me on Ubuntu 20.04, OpenJDK 8 1.8.0_252 (openjdk-8-jdk package).
Download https://github.com/cuba-platform/sample-session-planner sample
Switch project SDK and Gradle SDK to java 8.
Create UberJar task with Studio:
task buildUberJar(type: CubaUberJarBuilding) { singleJar = true appProperties = ['cuba.automaticDatabaseUpdate': true] }
CUBA -> Deployment -> Build UberJAR
Run created jar file:
$ java -jar app.jar Error: Unable to access jarfile app.jar
If you open the jar file, you will see that manifest.mf is empty.
Not reproduced with openjdk-11.
I'm having the same issue with Platform 6.10.17. Could it be related?
Environment
forum: https://www.cuba-platform.com/discuss/t/uberjar-creates-app-jar-with-0-byte-manifest-mf/12349/3
reproduced by me on Ubuntu 20.04, OpenJDK 8 1.8.0_252 (openjdk-8-jdk package).
Description of the bug or enhancement
Download https://github.com/cuba-platform/sample-session-planner sample
Switch project SDK and Gradle SDK to java 8.
Create UberJar task with Studio:
CUBA -> Deployment -> Build UberJAR
Run created jar file:
If you open the jar file, you will see that manifest.mf is empty.
Not reproduced with openjdk-11.