public List<URL> getUrls(MavenProject project) {
        Collection<String> classpathElements = this.getClasspathElements(project);
        List<URL> urls = new ArrayList<>(classpathElements.size());
        for (String element : classpathElements) {
            try {
                urls.add(new File(element).toURI().toURL());
            } catch (MalformedURLException e) {
                throw new IllegalStateException("Failed to resolve classpath element", e);
            }
        }
        return urls;
    }
Classes from the project (including tests), compile time, runtime and test dependencies.
Mainly intended for internal use when looking up custom modules.
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/ClasspathType.java