PluginDescriptor getPluginDescriptor(MavenProject project, Plugin plugin)
        throws MojoFailureException {
        try {
            return pluginManager.loadPlugin(plugin, project.getRemotePluginRepositories(), session.getRepositorySession());
        } catch (Exception e) {
            throw new MojoFailureException("Could not load " + plugin, e);
        }
    }
A service for executing goals on configured plugins.
<p>
Inspired by and partly reused from
https://github.com/TimMoore/mojo-executor but adapted to newer Maven versions.

@author roland
@since 01/07/15
src/main/java/io/fabric8/maven/docker/service/MojoExecutionService.java