resource-loader icon indicating copy to clipboard operation
resource-loader copied to clipboard

Spring Boot 3.2 nested jar references not supported

Open ahazeltonNF opened this issue 3 months ago • 0 comments

When using Spring Boot 3.2, the path to the referenced jar is of the format: nested:/app/appName.jar/!BOOT-INF/lib/lazysodium-java-5.1.4.jar

The “nested:” comes from the new https://docs.spring.io/spring-boot/docs/current/reference/html/executable-jar.html format. And also notice the /! separator for the nested jar reference.

Causes:

2024-03-15T20:25:01.146920010Z Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
2024-03-15T20:25:01.146931299Z     at java.base/java.io.File.<init>(File.java:420)
2024-03-15T20:25:01.146933670Z     at com.goterl.resourceloader.ResourceLoader.urlToFile(ResourceLoader.java:588)
2024-03-15T20:25:01.146937295Z     at com.goterl.resourceloader.ResourceLoader.urlToFile(ResourceLoader.java:567)

ahazeltonNF avatar Mar 18 '24 15:03 ahazeltonNF