if ( project.getBuild() != null && project.getBuild().getPlugins() != null)
for (Plugin plugin: project.getBuild().getPlugins()){
if (plugin.getExecutions() != null){
for (PluginExecution execution : plugin.getExecutions()){
if (execution instanceof BoostedPluginExecution){
BoostedPluginExecution exe = (BoostedPluginExecution) execution;
MavenProject dependencyProject = PomUtils.readMavenProjectFromRepository(plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion());
if (Boolean.TRUE.equals( exe.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
BookUtils.createDiv(documentationParent, "Executes " + exe.getId() + " with goals " + exe.getGoals() + " of plugin " + createArtifactIdentifierForDocumentation(plugin));
String pluginPath="/" + plugin.getGroupId()+ "/" + plugin.getArtifactId() + "/plugin.xml";
InputStream pluginXml = MavenDocumentationGenerator.class.getResourceAsStream(pluginPath);
if (pluginXml == null)
throw new FileNotFoundException(pluginPath + " not found in jars.");
PluginDescriptor pluginDescriptor = PomUtils.readPluginDescriptor(new InputStreamReader( pluginXml));