devslm / proguard-spring-boot-example

Proguard Spring Boot Maven Plugin Example
Apache License 2.0
155 stars 60 forks source link

no main manifest attribute, in spring.boot_proguard_base.jar #4

Closed anudeepmadrampalli closed 4 years ago

anudeepmadrampalli commented 5 years ago

When I try to run the spring.boot_proguard_base.jar, JRE says "no main manifest attribute, in spring.boot_proguard_base.jar". The manifest files are missing in the obfuscated jar. Also can the jar which is built is not in spring boot format. Can you please let me know if you have tested the jar after obfuscation.

devslm commented 5 years ago

Thanks for the question! After compiling the project un the target directory you can see 2 jar files: spring.boot_proguard_base.jar and spring.boot.jar. The first binary doesn't contain any libs and manifest and its size is about 10kb. You must use spring.boot.jar, it contain all required libs and its size is about 19Mb. I will add this information to the README. I test every change in different Docker containers with JDK 8 and 11.