private void executePluginDef()

in tools/karaf-boot-maven-plugin/src/main/java/org/apache/karaf/boot/maven/GenerateMojo.java [84:100]


    private void executePluginDef(InputStream is) throws Exception {
        Xpp3Dom pluginDef = Xpp3DomBuilder.build(is, "utf-8");
        Plugin plugin = loadPlugin(pluginDef);
        Xpp3Dom config = pluginDef.getChild("configuration");
        PluginDescriptor pluginDesc = pluginManager.loadPlugin(plugin, 
                                                               mavenProject.getRemotePluginRepositories(), 
                                                               mavenSession.getRepositorySession());
        Xpp3Dom executions = pluginDef.getChild("executions");
        
        for ( Xpp3Dom execution : executions.getChildren()) {
            Xpp3Dom goals = execution.getChild("goals");
            for (Xpp3Dom goal : goals.getChildren()) {
                MojoDescriptor desc = pluginDesc.getMojo(goal.getValue());
                pluginManager.executeMojo(mavenSession, new MojoExecution(desc, config));
            }
        }
    }