kbss-cvut / jb4jsonld

JSON-LD serialization and deserialization for Java REST services.
GNU Lesser General Public License v3.0
10 stars 3 forks source link

Classpath scanning does not work for Spring Boot-based JARs #31

Closed ledsoft closed 3 years ago

ledsoft commented 3 years ago

When using JB4JSON-LD in a Spring Boot-based application, there is problem with classpath scanning. It expects multi-release info in META-INF while it can be in BOOT-INF for Spring Boot applications.

psiotwo commented 3 years ago

Hypothesis: loading of WAR files never worked, because in WAR files the classes are bundled under WEB-INF/classes and not in the jar root.

(see https://github.com/kbss-cvut/jb4jsonld/blob/092f1a04fc783431a4a3f23f319252814c699475/src/main/java/cz/cvut/kbss/jsonld/deserialization/util/ClasspathScanner.java#L117)

psiotwo commented 3 years ago

fixed via #32