Class DefaultReportingConverter

java.lang.Object
org.apache.maven.model.plugin.DefaultReportingConverter
All Implemented Interfaces:
ReportingConverter

@Named @Singleton public class DefaultReportingConverter extends Object implements ReportingConverter
Handles conversion of the <reporting> section into the configuration of Maven Site Plugin 3.x, i.e. reportPlugins and outputDirectory parameters.
  • Field Details

  • Constructor Details

    • DefaultReportingConverter

      public DefaultReportingConverter()
  • Method Details

    • convertReporting

      public void convertReporting(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
      Description copied from interface: ReportingConverter
      Converts values from model's reporting section into the configuration for Maven Site Plugin 3.x.
      Specified by:
      convertReporting in interface ReportingConverter
      Parameters:
      model - The model whose reporting section should be converted, must not be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • findSitePlugin

      private Plugin findSitePlugin(Build build)
    • isSitePlugin

      private boolean isSitePlugin(Plugin plugin)
    • convert

      private org.codehaus.plexus.util.xml.Xpp3Dom convert(ReportPlugin plugin)
    • convert

      private org.codehaus.plexus.util.xml.Xpp3Dom convert(ReportSet reportSet)
    • addDom

      private void addDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, String childName, String childValue)
    • addDom

      private void addDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, String childName, String childValue, InputLocation location)
    • newDom

      private org.codehaus.plexus.util.xml.Xpp3Dom newDom(String name, String value, InputLocation location)