in src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java [1628:1644]
private List<org.eclipse.aether.graph.Dependency> convertToDependencies(
List<DependencyCoordinate> annotationProcessorPaths) throws MojoExecutionException {
List<org.eclipse.aether.graph.Dependency> dependencies = new ArrayList<>();
for (DependencyCoordinate annotationProcessorPath : annotationProcessorPaths) {
ArtifactHandler handler = artifactHandlerManager.getArtifactHandler(annotationProcessorPath.getType());
String version = getAnnotationProcessorPathVersion(annotationProcessorPath);
Artifact artifact = new DefaultArtifact(
annotationProcessorPath.getGroupId(),
annotationProcessorPath.getArtifactId(),
annotationProcessorPath.getClassifier(),
handler.getExtension(),
version);
Set<Exclusion> exclusions = convertToAetherExclusions(annotationProcessorPath.getExclusions());
dependencies.add(new org.eclipse.aether.graph.Dependency(artifact, JavaScopes.RUNTIME, false, exclusions));
}
return dependencies;
}