diff --git a/pom.xml b/pom.xml index fb784f78..ef288310 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ 2.10.0 provided - 2.10.3 + 2.11.0 3.7.1 2.35 2.2.6 @@ -353,13 +353,29 @@ commons-io commons-io - 2.7 + 2.15.1 + + + org.mapdb + mapdb + 3.0.10 + + com.databasepreservation + dbptk-bindings + 1.5.1 + pom + + + com.databasepreservation + dbptk-bindings-siard2-1 + 1.5.1 + com.databasepreservation dbptk-model diff --git a/src/main/java/com/databasepreservation/common/server/ViewerConfiguration.java b/src/main/java/com/databasepreservation/common/server/ViewerConfiguration.java index a5772493..1ef587d0 100644 --- a/src/main/java/com/databasepreservation/common/server/ViewerConfiguration.java +++ b/src/main/java/com/databasepreservation/common/server/ViewerConfiguration.java @@ -41,7 +41,7 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.reflections.Reflections; -import org.reflections.scanners.ResourcesScanner; +import org.reflections.scanners.Scanners; import org.reflections.util.ClasspathHelper; import org.reflections.util.ConfigurationBuilder; import org.slf4j.Logger; @@ -776,8 +776,8 @@ protected static void copyFilesFromClasspath(String classpathPrefix, Path destin classLoadersList.add(ClasspathHelper.contextClassLoader()); Reflections reflections = new Reflections( - new ConfigurationBuilder().setScanners(new ResourcesScanner()).setUrls(ClasspathHelper.forPackage(classpathPrefix, - ClasspathHelper.contextClassLoader(), ClasspathHelper.staticClassLoader()))); + new ConfigurationBuilder().forPackage(classpathPrefix, + ClasspathHelper.contextClassLoader(), ClasspathHelper.staticClassLoader()).setScanners(Scanners.Resources)); Set resources = reflections.getResources(Pattern.compile(".*")); resources = resources.stream().filter(r -> !shouldExclude(r, classpathPrefix, excludePaths))