本文整理了Java中org.apache.maven.model.Model.setReporting()
方法的一些代码示例,展示了Model.setReporting()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.setReporting()
方法的具体详情如下:
包路径:org.apache.maven.model.Model
类名称:Model
方法名:setReporting
暂无
代码示例来源:origin: apache/maven
@Deprecated
public void setReporting( Reporting reporting )
{
getModel().setReporting( reporting );
}
代码示例来源:origin: org.apache.maven/maven-project
public void setReporting( Reporting reporting )
{
getModel().setReporting( reporting );
}
代码示例来源:origin: org.apache.maven/maven-project
model.setReporting( profileReporting );
代码示例来源:origin: apache/maven
private void assembleReportingInheritance( Model child, Model parent )
{
// Reports :: aggregate
Reporting childReporting = child.getReporting();
Reporting parentReporting = parent.getReporting();
if ( parentReporting != null )
{
if ( childReporting == null )
{
childReporting = new Reporting();
child.setReporting( childReporting );
}
childReporting.setExcludeDefaults( parentReporting.isExcludeDefaults() );
if ( StringUtils.isEmpty( childReporting.getOutputDirectory() ) )
{
childReporting.setOutputDirectory( parentReporting.getOutputDirectory() );
}
mergeReportPluginLists( childReporting, parentReporting, true );
}
}
代码示例来源:origin: org.apache.maven/maven-project
private void assembleReportingInheritance( Model child, Model parent )
{
// Reports :: aggregate
Reporting childReporting = child.getReporting();
Reporting parentReporting = parent.getReporting();
if ( parentReporting != null )
{
if ( childReporting == null )
{
childReporting = new Reporting();
child.setReporting( childReporting );
}
if ( childReporting.isExcludeDefaultsValue() == null )
{
childReporting.setExcludeDefaultsValue( parentReporting.isExcludeDefaultsValue() );
}
if ( StringUtils.isEmpty( childReporting.getOutputDirectory() ) )
{
childReporting.setOutputDirectory( parentReporting.getOutputDirectory() );
}
ModelUtils.mergeReportPluginLists( childReporting, parentReporting, true );
}
}
代码示例来源:origin: apache/maven
model.setReporting( parseReporting( parser, strict ) );
代码示例来源:origin: apache/maven
model.setReporting( parseReporting( parser, strict, source ) );
代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.m2repo
@Override
public void setReporting(Reporting reporting) {
delegate.setReporting(reporting);
}
代码示例来源:origin: mojohaus/flatten-maven-plugin
@Override
public void set( Model model, Reporting value )
{
model.setReporting( value );
};
};
代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder
/**
* Set this element includes the specification of report
* plugins to use
* to generate the reports on the Maven-generated
* site.
* These reports will be run when a user executes
* <code>mvn site</code>.
* All of the reports will be included in the
* navigation bar for browsing.
*
* @param reporting
*/
public FluentModelBuilder withReporting(Reporting reporting) {
model.setReporting(reporting);
return this;
}
代码示例来源:origin: takari/polyglot-maven
model.setReporting( parseReporting( parser, strict ) );
代码示例来源:origin: stackoverflow.com
Model model = new Model();
ReportPlugin reportPlugin = new ReportPlugin();
reportPlugin.setGroupId("org.codehaus.mojo");
reportPlugin.setArtifactId("cobertura-maven-plugin");
Reporting reporting = new Reporting();
reporting.addPlugin(reportPlugin);
model.setReporting(reporting);
StringWriter writer = new StringWriter();
MavenXpp3Writer xpp = new MavenXpp3Writer();
try {
xpp.write(writer, model);
System.out.println(writer.toString());
} catch (IOException e) {
e.printStackTrace();
}
代码示例来源: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: org.apache.maven/maven-ant-tasks
/**
* Removes a lot of unnecessary information from the POM.
* This includes the build section, reporting, repositories, etc.
*/
public void trimModel( Model model )
{
model.setBuild( null );
model.setReporting( null );
model.setProperties( null );
model.setRepositories( null );
model.setPluginRepositories( null );
model.setProfiles( null );
model.setDistributionManagement( null );
model.setModules( null );
}
代码示例来源:origin: io.tesla.maven/maven-model
model.setReporting( parseReporting( parser, strict ) );
代码示例来源:origin: io.fabric8.forge/devops
if (reporting == null) {
reporting = new Reporting();
model.setReporting(reporting);
代码示例来源:origin: io.tesla.maven/maven-model
model.setReporting( parseReporting( parser, strict, source ) );
代码示例来源:origin: org.apache.maven.shared/maven-model-converter
v4Model.setReporting( new Reporting() );
代码示例来源:origin: org.apache.maven.shared/maven-model-converter
model.setPackaging( "jar" );
model.setReporting( translateReports( v3Model.getReports() ) );
model.setScm( translateScm( v3Model ) );
model.setUrl( v3Model.getUrl() );
内容来源于网络,如有侵权,请联系作者删除!