return pluginManager.getPluginDescriptor( plugin, project.getRemotePluginRepositories(),
session.getRepositorySession() );
}
catch ( PluginResolutionException e )
{
throw new PluginNotFoundException( plugin, project.getPluginArtifactRepositories() );
}
catch ( PluginDescriptorParsingException e )
{
throw new PluginManagerException( plugin, e.getMessage(), e );
}