本文整理了Java中org.apache.maven.model.Reporting.getReportPluginsAsMap
方法的一些代码示例,展示了Reporting.getReportPluginsAsMap
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reporting.getReportPluginsAsMap
方法的具体详情如下:
包路径:org.apache.maven.model.Reporting
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!