Class EnhancedPluginDescriptorBuilder


  • public class EnhancedPluginDescriptorBuilder
    extends PluginDescriptorBuilder
    Reads enhanced plugin.xml files as generated by PluginDescriptorFilesGenerator and used by PluginReport. Populates the slightly extended Parameter object EnhancedParameterWrapper. In addition, populates all (optional) elements added after Maven Plugin API 3.2.5.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addMissingParameterSinceField​(org.apache.maven.plugin.descriptor.Parameter pd, org.codehaus.plexus.configuration.PlexusConfiguration d)
      Reads the plugin descriptor and adds the fix for MNG-6109 when using Maven-3.3.9 and before.
      org.apache.maven.plugin.descriptor.PluginDescriptor build​(java.io.Reader reader, java.lang.String source)  
      org.apache.maven.plugin.descriptor.MojoDescriptor buildComponentDescriptor​(org.codehaus.plexus.configuration.PlexusConfiguration c, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)  
      org.codehaus.plexus.configuration.PlexusConfiguration buildConfiguration​(java.io.Reader reader)
      Cache the returned configuration for additional evaluation in build(Reader, String).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • requireAddingMissingParameterSinceField

        private final boolean requireAddingMissingParameterSinceField
      • configuration

        private org.codehaus.plexus.configuration.PlexusConfiguration configuration
    • Constructor Detail

      • EnhancedPluginDescriptorBuilder

        public EnhancedPluginDescriptorBuilder​(org.apache.maven.rtinfo.RuntimeInformation rtInfo)
      • EnhancedPluginDescriptorBuilder

        EnhancedPluginDescriptorBuilder​(boolean requireAddingMissingParameterSinceField)
    • Method Detail

      • buildConfiguration

        public org.codehaus.plexus.configuration.PlexusConfiguration buildConfiguration​(java.io.Reader reader)
                                                                                 throws org.codehaus.plexus.configuration.PlexusConfigurationException
        Cache the returned configuration for additional evaluation in build(Reader, String).
        Overrides:
        buildConfiguration in class PluginDescriptorBuilder
        Throws:
        org.codehaus.plexus.configuration.PlexusConfigurationException
      • build

        public org.apache.maven.plugin.descriptor.PluginDescriptor build​(java.io.Reader reader,
                                                                         java.lang.String source)
                                                                  throws org.codehaus.plexus.configuration.PlexusConfigurationException
        Overrides:
        build in class PluginDescriptorBuilder
        Throws:
        org.codehaus.plexus.configuration.PlexusConfigurationException
      • buildComponentDescriptor

        public org.apache.maven.plugin.descriptor.MojoDescriptor buildComponentDescriptor​(org.codehaus.plexus.configuration.PlexusConfiguration c,
                                                                                          org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                                                                                   throws org.codehaus.plexus.configuration.PlexusConfigurationException
        Overrides:
        buildComponentDescriptor in class PluginDescriptorBuilder
        Throws:
        org.codehaus.plexus.configuration.PlexusConfigurationException
      • addMissingParameterSinceField

        void addMissingParameterSinceField​(org.apache.maven.plugin.descriptor.Parameter pd,
                                           org.codehaus.plexus.configuration.PlexusConfiguration d)
                                    throws org.codehaus.plexus.configuration.PlexusConfigurationException
        Reads the plugin descriptor and adds the fix for MNG-6109 when using Maven-3.3.9 and before. Method can be removed once Maven 3.5.0 is the prerequisite for this plugin.
        Throws:
        org.codehaus.plexus.configuration.PlexusConfigurationException
        Since:
        3.5.1
        See Also:
        MNG-6109, MPLUGIN-319