use of org.apache.maven.extension.ExtensionManager in project intellij-community by JetBrains.
the class MavenEmbedder method findExtensions.
private void findExtensions(MavenProject project) {
// end copied from DefaultLifecycleExecutor.findExtensions
ExtensionManager extensionManager = getComponent(ExtensionManager.class);
for (Object each : project.getBuildExtensions()) {
try {
extensionManager.addExtension((Extension) each, project, myLocalRepository);
} catch (PlexusContainerException e) {
MavenEmbedderLog.LOG.error(e);
} catch (ArtifactResolutionException e) {
MavenEmbedderLog.LOG.error(e);
} catch (ArtifactNotFoundException e) {
MavenEmbedderLog.LOG.error(e);
}
}
extensionManager.registerWagons();
Map handlers = findArtifactTypeHandlers(project);
getComponent(ArtifactHandlerManager.class).addHandlers(handlers);
}
Aggregations