Closed gagarski closed 11 months ago
what means nested
here ? it's a custom protocol ? do you have a link to this feature of spring boot ?
No idea for now (it's coming from Spring Boot class loader, not from my code), yet I'll search for it later. I just tried to update the plugin version :)
From what it seems from the description it's effectively the same as file
, but maybe more powerful.
Let me come back later, if you don't find this earlier :)
Version
4.5.0
Context
Let's consider this code:
being built into JAR with the following config of spring-boot-maven-plugin:
When I build and run it:
I get the followng error:
If I downgrade to spring-moot-maven-plugin version 2.7.5, everything works fine.
The reason seems to be that the URL of nested file was changed between versions from
jar:file:/C:/Users/gagar/IdeaProjects/file-resolver-bug/target/file-resolver-bug-1.0-SNAPSHOT.jar/!BOOT-INF/classes/!/test.txt
tojar:nested:/C:/Users/gagar/IdeaProjects/file-resolver-bug/target/file-resolver-bug-1.0-SNAPSHOT.jar/!BOOT-INF/classes/!/test.txt
and implementation of unpackFromJarURL highly relies on it to bejar:file
(the constant4
there).Do you have a reproducer?
[A reproducer is a simple project hosted on GitHub (or another forge supporting git clone operation) that has a build file that can be executed to reproduce the issue.
Reproducers are very helpful for contributors and will likely help them fixing your bug faster.
Steps to reproduce
Described above, build and run the repro project