本文整理了Java中org.apache.maven.model.Build.getPluginManagement()
方法的一些代码示例,展示了Build.getPluginManagement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Build.getPluginManagement()
方法的具体详情如下:
包路径:org.apache.maven.model.Build
类名称:Build
方法名:getPluginManagement
暂无
代码示例来源:origin: org.apache.maven/maven-project
public PluginManagement getPluginManagement()
{
return build.getPluginManagement();
}
代码示例来源:origin: org.apache.maven/maven-project
public PluginManagement getPluginManagement()
{
PluginManagement pluginMgmt = null;
Build build = getModel().getBuild();
if ( build != null )
{
pluginMgmt = build.getPluginManagement();
}
return pluginMgmt;
}
代码示例来源:origin: apache/maven
public void mergeManagedBuildPlugins( Model model )
{
Build build = model.getBuild();
if ( build != null )
{
PluginManagement pluginManagement = build.getPluginManagement();
if ( pluginManagement != null )
{
mergePluginContainerPlugins( build, pluginManagement );
}
}
}
代码示例来源:origin: apache/maven
public PluginManagement getPluginManagement()
{
PluginManagement pluginMgmt = null;
Build build = getModel().getBuild();
if ( build != null )
{
pluginMgmt = build.getPluginManagement();
}
return pluginMgmt;
}
代码示例来源:origin: org.apache.maven/maven-project
public void injectPluginManagementInfo( Plugin plugin )
{
PluginManagement pm = getModelBuild().getPluginManagement();
if ( pm != null )
{
Map pmByKey = pm.getPluginsAsMap();
String pluginKey = plugin.getKey();
if ( pmByKey != null && pmByKey.containsKey( pluginKey ) )
{
Plugin pmPlugin = (Plugin) pmByKey.get( pluginKey );
ModelUtils.mergePluginDefinitions( plugin, pmPlugin, false );
}
}
}
代码示例来源:origin: apache/maven
PluginManagement mgmt = build.getPluginManagement();
if ( mgmt != null )
代码示例来源:origin: apache/maven
private PluginVersionResult resolveFromProject( PluginVersionRequest request )
{
PluginVersionResult result = null;
if ( request.getPom() != null && request.getPom().getBuild() != null )
{
Build build = request.getPom().getBuild();
result = resolveFromProject( request, build.getPlugins() );
if ( result == null && build.getPluginManagement() != null )
{
result = resolveFromProject( request, build.getPluginManagement().getPlugins() );
}
}
return result;
}
代码示例来源:origin: org.apache.maven/maven-project
private void mergeDeterministicBuildElements( Build interpolatedBuild,
Build dynamicBuild )
{
mergeDeterministicPluginElements( interpolatedBuild.getPlugins(), dynamicBuild.getPlugins() );
PluginManagement dPluginMgmt = dynamicBuild.getPluginManagement();
PluginManagement iPluginMgmt = interpolatedBuild.getPluginManagement();
if ( dPluginMgmt != null )
{
mergeDeterministicPluginElements( iPluginMgmt.getPlugins(), dPluginMgmt.getPlugins() );
}
if ( dynamicBuild.getExtensions() != null )
{
dynamicBuild.setExtensions( interpolatedBuild.getExtensions() );
}
}
代码示例来源:origin: apache/maven
private PluginPrefixResult resolveFromProject( PluginPrefixRequest request )
{
PluginPrefixResult result = null;
if ( request.getPom() != null && request.getPom().getBuild() != null )
{
Build build = request.getPom().getBuild();
result = resolveFromProject( request, build.getPlugins() );
if ( result == null && build.getPluginManagement() != null )
{
result = resolveFromProject( request, build.getPluginManagement().getPlugins() );
}
}
return result;
}
代码示例来源:origin: apache/maven
public void merge( Model target, Model source )
{
if ( target.getBuild() == null )
{
target.setBuild( new Build() );
}
Map<Object, Object> context =
Collections.<Object, Object>singletonMap( PLUGIN_MANAGEMENT, target.getBuild().getPluginManagement() );
mergePluginContainer_Plugins( target.getBuild(), source.getBuild(), false, context );
}
代码示例来源:origin: apache/maven
PluginManagement mgmt = build.getPluginManagement();
if ( mgmt != null )
代码示例来源:origin: apache/maven
private Plugin findSitePlugin( Build build )
{
for ( Plugin plugin : build.getPlugins() )
{
if ( isSitePlugin( plugin ) )
{
return plugin;
}
}
PluginManagement pluginManagement = build.getPluginManagement();
if ( pluginManagement != null )
{
for ( Plugin plugin : pluginManagement.getPlugins() )
{
if ( isSitePlugin( plugin ) )
{
return plugin;
}
}
}
return null;
}
代码示例来源:origin: apache/maven
@Override
public void expandPluginConfiguration( Model model, ModelBuildingRequest request, ModelProblemCollector problems )
{
Build build = model.getBuild();
if ( build != null )
{
expand( build.getPlugins() );
PluginManagement pluginManagement = build.getPluginManagement();
if ( pluginManagement != null )
{
expand( pluginManagement.getPlugins() );
}
}
}
代码示例来源:origin: org.apache.maven/maven-project
public void injectDefaults( Model model )
{
injectDependencyDefaults( model.getDependencies(), model.getDependencyManagement() );
if ( model.getBuild() != null )
{
injectPluginDefaults( model.getBuild(), model.getBuild().getPluginManagement() );
}
}
代码示例来源:origin: org.apache.maven/maven-project
PluginManagement dominantPM = childBuild.getPluginManagement();
PluginManagement recessivePM = parentBuild.getPluginManagement();
ModelUtils.mergePluginLists( childBuild.getPluginManagement(), parentBuild.getPluginManagement(),
false );
代码示例来源:origin: apache/maven
PluginManagement dominantPM = childBuild.getPluginManagement();
PluginManagement recessivePM = parentBuild.getPluginManagement();
ModelUtils.mergePluginLists( childBuild.getPluginManagement(), parentBuild.getPluginManagement(), false );
代码示例来源:origin: apache/maven
if ( build.getPluginManagement() != null )
writePluginManagement( (PluginManagement) build.getPluginManagement(), "pluginManagement", serializer );
代码示例来源:origin: apache/maven
PluginManagement pluginManagement = build.getPluginManagement();
if ( pluginManagement == null )
代码示例来源:origin: org.apache.maven/maven-project
PluginManagement modelPM = modelBuild.getPluginManagement();
代码示例来源:origin: apache/maven
PluginManagement mgmt = build.getPluginManagement();
if ( mgmt != null )
内容来源于网络,如有侵权,请联系作者删除!