org.apache.maven.model.Reporting.getReportPluginsAsMap()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.apache.maven.model.Reporting.getReportPluginsAsMap方法的一些代码示例,展示了Reporting.getReportPluginsAsMap的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reporting.getReportPluginsAsMap方法的具体详情如下:
包路径:org.apache.maven.model.Reporting
类名称:Reporting
方法名:getReportPluginsAsMap

Reporting.getReportPluginsAsMap介绍

暂无

代码示例

代码示例来源:origin: org.apache.maven/maven-project

Map childPlugins = child.getReportPluginsAsMap();

代码示例来源:origin: org.apache.maven/maven-project

Map profileReportersByKey = profileReporting.getReportPluginsAsMap();

代码示例来源:origin: apache/maven

Map<String, ReportPlugin> childPlugins = child.getReportPluginsAsMap();

代码示例来源:origin: org.sonatype.maven.archetype/archetype-common

private void mergeReportPlugins(Model model, Model generatedModel) {
  if (generatedModel.getReporting() != null) {
    if (model.getReporting() == null) {
      model.setReporting(new Reporting());
    }
    Map<String,ReportPlugin> reportPluginsByIds=model.getReporting().getReportPluginsAsMap();
    Map<String,ReportPlugin> generatedReportPluginsByIds=generatedModel.getReporting().getReportPluginsAsMap();
    for (String generatedReportPluginsId : generatedReportPluginsByIds.keySet()) {
      if (!reportPluginsByIds.containsKey(generatedReportPluginsId)) {
        model.getReporting().addPlugin(generatedReportPluginsByIds.get(generatedReportPluginsId));
      }
      else {
        log.warn("Can not override report: " + generatedReportPluginsId);
      }
    }
  }
}

代码示例来源:origin: apache/maven-archetype

private void mergeReportPlugins( Model model, Model generatedModel )
{
  if ( generatedModel.getReporting() != null )
  {
    if ( model.getReporting() == null )
    {
      model.setReporting( new Reporting() );
    }
    @SuppressWarnings( "unchecked" )
    Map<String, ReportPlugin> reportPluginsByIds = model.getReporting().getReportPluginsAsMap();
    @SuppressWarnings( "unchecked" )
    Map<String, ReportPlugin> generatedReportPluginsByIds =
      generatedModel.getReporting().getReportPluginsAsMap();
    for ( String generatedReportPluginsId : generatedReportPluginsByIds.keySet() )
    {
      if ( !reportPluginsByIds.containsKey( generatedReportPluginsId ) )
      {
        model.getReporting().addPlugin( generatedReportPluginsByIds.get( generatedReportPluginsId ) );
      }
      else
      {
        getLogger().warn( "Can not override report: " + generatedReportPluginsId );
      }
    }
  }
}

代码示例来源:origin: io.fabric8.forge/devops

model.setReporting(reporting);
Map<String, ReportPlugin> reportPluginsAsMap = reporting.getReportPluginsAsMap();

相关文章