use of org.apache.maven.plugin.descriptor.MojoDescriptor in project intellij-plugins by JetBrains.
the class IdeaConfigurationMojo method createMojoExecution.
private MojoExecution createMojoExecution(Plugin plugin, String goal, MavenProject project) throws Exception {
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor(plugin, goal, project.getRemotePluginRepositories(), session.getRepositorySession());
MojoExecution mojoExecution = new MojoExecution(mojoDescriptor, "default-cli", MojoExecution.Source.CLI);
lifeCycleExecutionPlanCalculator.setupMojoExecution(session, project, mojoExecution);
return mojoExecution;
}
Aggregations