Maybe you need to use the relevant classloader as well,
Reflections reflections = new Reflections(new ConfigurationBuilder().setUrls(ClasspathHelper.forPackage("my.package", myClassLoader)).addClassLoader(myClassLoader));
Or just:
new Reflections("my.package", myClassLoader, scanners, ...)
Check it out in the documentation.