Due to the numerous resources and .class files in the JAR file, the MANIFEST.MF file has become huge. For instance, it is approximately 19.7 Mb for GroupDocs.Viewer v21.2 and 22.5 Mb for GroupDocs.Viewer v23.7.
That is why you may get errors similar to the one below:
The issue arises from Java’s file size limit, which is set at 8,000,000 bytes by default. You can resolve this using the -Djdk.jar.maxSignatureFileSize=8000000 option in your Virtual Machine settings. Change the 8,000,000 to the required file size limit.
SET MAVEN_OPTS="-Djdk.jar.maxSignatureFileSize=25000000"mvn clean compile spring-boot:run