Unable to open nested entry 'BOOT-INF/lib/spring-boot-2.5.8.jar'

Exception in thread “main” java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/spring-boot-2.5.8.jar
at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(Unknown Source)
at org.springframework.boot.loader.archive.JarFileArchive$NestedArchiveIterator.adapt(Unknown Source)
at org.springframework.boot.loader.archive.JarFileArchive$NestedArchiveIterator.adapt(Unknown Source)
at org.springframework.boot.loader.archive.JarFileArchive$AbstractIterator.next(Unknown Source)
at org.springframework.boot.loader.ExecutableArchiveLauncher.createClassLoader(Unknown Source)
at org.springframework.boot.loader.Launcher.launch(Unknown Source)
at org.springframework.boot.loader.JarLauncher.main(Unknown Source)
Caused by: java.io.IOException: Unable to open nested jar file ‘BOOT-INF/lib/spring-boot-2.5.8.jar’
at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(Unknown Source)
at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(Unknown Source)
… 7 more
Caused by: java.lang.IllegalStateException: Unable to open nested entry ‘BOOT-INF/lib/spring-boot-2.5.8.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
at org.springframework.boot.loader.jar.JarFile.createJarFileFromFileEntry(Unknown Source)
at org.springframework.boot.loader.jar.JarFile.createJarFileFromEntry(Unknown Source)
… 9 more