SLING-8073 update reflections library to 0.10.2 (#18)

improves logging and exception handling
diff --git a/core/pom.xml b/core/pom.xml
index 9b00c6b..4480bd5 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -90,13 +90,13 @@
         <dependency>
             <groupId>org.reflections</groupId>
             <artifactId>reflections</artifactId>
-            <version>0.9.12</version>
+            <version>0.10.2</version>
             <scope>compile</scope>
             <!-- exclude all optional dependencies -->
             <exclusions>
                 <exclusion>
-                    <groupId>org.slf4j</groupId>
-                    <artifactId>slf4j-api</artifactId>
+                    <groupId>com.google.code.findbugs</groupId>
+                    <artifactId>jsr305</artifactId>
                 </exclusion>
                 <exclusion>
                     <groupId>dom4j</groupId>
@@ -114,6 +114,10 @@
                     <groupId>org.slf4j</groupId>
                     <artifactId>slf4j-simple</artifactId>
                 </exclusion>
+                <exclusion>
+                    <groupId>org.jboss</groupId>
+                    <artifactId>jboss-vfs</artifactId>
+                </exclusion>
             </exclusions>
         </dependency>
 
diff --git a/core/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java b/core/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java
index 673a146..e094d10 100644
--- a/core/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java
+++ b/core/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java
@@ -52,7 +52,7 @@
 import org.osgi.framework.InvalidSyntaxException;
 import org.osgi.framework.ServiceReference;
 import org.reflections.Reflections;
-import org.reflections.scanners.ResourcesScanner;
+import org.reflections.scanners.Scanners;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.w3c.dom.Document;
@@ -74,9 +74,6 @@
     static {
         DOCUMENT_BUILDER_FACTORY = DocumentBuilderFactory.newInstance();
         DOCUMENT_BUILDER_FACTORY.setNamespaceAware(true);
-
-        // suppress log entries from Reflections library
-        Reflections.log = null;
     }
 
     private static final XPathFactory XPATH_FACTORY = XPathFactory.newInstance();
@@ -156,7 +153,7 @@
         }
 
         // get all OSGI-INF/*.xml files from classpath
-        Reflections reflections = new Reflections(METADATA_PATH, new ResourcesScanner());
+        Reflections reflections = new Reflections(METADATA_PATH, Scanners.Resources);
         Pattern xmlFilesPattern = Pattern.compile("^.*\\.xml$");
         Set<String> paths = reflections.getResources(xmlFilesPattern);