Java 类org.apache.maven.model.PluginConfiguration 实例源码

项目:apache-maven-shade-plugin    文件:MavenJDOMWriter.java   
/**
 * Method updatePluginConfiguration
 *
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
//CHECKSTYLE_OFF: LineLength
protected void updatePluginConfiguration( PluginConfiguration value, String xmlTag, Counter counter, Element element )
{
    boolean shouldExist = value != null;
    Element root = updateElement( counter, element, xmlTag, shouldExist );
    if ( shouldExist )
    {
        Counter innerCount = new Counter( counter.getDepth() + 1 );
        updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root );
        iteratePlugin( innerCount, root, value.getPlugins(), "plugins", "plugin" );
    }
}
项目:maven-shade-plugin    文件:MavenJDOMWriter.java   
/**
 * Method updatePluginConfiguration
 *
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updatePluginConfiguration( PluginConfiguration value, String xmlTag, Counter counter,
                                          Element element )
{
    boolean shouldExist = value != null;
    Element root = updateElement( counter, element, xmlTag, shouldExist );
    if ( shouldExist )
    {
        Counter innerCount = new Counter( counter.getDepth() + 1 );
        updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root );
        iteratePlugin( innerCount, root, value.getPlugins(), "plugins", "plugin" );
    }
}
项目:oceano    文件:ModelMerger.java   
protected void mergePluginConfiguration( PluginConfiguration target, PluginConfiguration source,
                                         boolean sourceDominant, Map<Object, Object> context )
{
    mergePluginContainer( target, source, sourceDominant, context );
    mergePluginConfiguration_PluginManagement( target, source, sourceDominant, context );
}