Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for nested JAR paths #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wduncanfraser
Copy link

@wduncanfraser wduncanfraser commented Feb 5, 2024

As of Spring 3.2, the default loader has moved form standard "jar" paths to "nested". This is meant to be a drop in replacement for standard Jar path loading.

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#nested-jar-support

https://javadoc.io/doc/org.springframework.boot/spring-boot-loader/latest/org/springframework/boot/loader/net/protocol/nested/package-summary.html

Without this change, using >= Spring 3.2.x would result in an exception like:

Caused by: net.pwall.json.schema.JSONSchemaException: Error reading schema file - nested:/app/some-service.jar/!BOOT-INF/classes/!/library/some-schema.yaml

Simply adds nested as a supported scheme, leveraging the existing jar support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant