diff --git a/src/main/java/net/revelc/code/apilyzer/maven/plugin/AnalyzeMojo.java b/src/main/java/net/revelc/code/apilyzer/maven/plugin/AnalyzeMojo.java index 4da089a..251392c 100644 --- a/src/main/java/net/revelc/code/apilyzer/maven/plugin/AnalyzeMojo.java +++ b/src/main/java/net/revelc/code/apilyzer/maven/plugin/AnalyzeMojo.java @@ -333,7 +333,7 @@ private static enum ProblemType { }; private ClassPath getClassPath() throws DependencyResolutionRequiredException, IOException { - URL[] urls = project.getRuntimeClasspathElements().stream().map(TO_URL).toArray(URL[]::new); + URL[] urls = project.getCompileClasspathElements().stream().map(TO_URL).toArray(URL[]::new); return ClassPath.from(new URLClassLoader(urls, null)); }