in enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/RequirePluginVersions.java [784:803]
private PluginDescriptor verifyPlugin(
Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository)
throws LifecycleExecutionException, PluginNotFoundException {
PluginDescriptor pluginDescriptor;
try {
pluginDescriptor = pluginManager.verifyPlugin(plugin, project, settings, localRepository);
} catch (PluginManagerException e) {
throw new LifecycleExecutionException(
"Internal error in the plugin manager getting plugin '" + plugin.getKey() + "': " + e.getMessage(),
e);
} catch (PluginVersionResolutionException
| InvalidVersionSpecificationException
| InvalidPluginException
| PluginVersionNotFoundException
| org.apache.maven.artifact.resolver.ArtifactResolutionException
| ArtifactNotFoundException e) {
throw new LifecycleExecutionException(e.getMessage(), e);
}
return pluginDescriptor;
}