in geronimo-openapi-maven-plugin/src/main/java/org/apache/geronimo/microprofile/openapi/mojo/OpenAPIMojo.java [194:207]
private void scan(final ClassLoader loader) {
final Finder finder = new Finder(loader, classes);
if (application == null) {
final List<String> apps = finder.findByAnnotation(ApplicationPath.class.getName());
if (apps.size() > 1) {
throw new IllegalArgumentException("Ambiguous application class: " + apps);
} else if (apps.size() == 1) {
application = apps.iterator().next();
}
}
if (endpointClasses == null || endpointClasses.isEmpty()) {
endpointClasses = finder.findByAnnotation(Path.class.getName());
}
}