Class MavenPluginValidator


  • public class MavenPluginValidator
    extends java.lang.Object
    This is a simple Maven plugin validator that pretends that all plugins have valid descriptors.

    This is XMvn-specific class and it resides in org.apache.maven namespace only because it needs to override Maven class. If this was a Plexus component then there would be no need to override Maven class, setting default component class in plexus.xml would be enough.

    TODO: Try convince Maven upstream to convert this to Plexus component.

    Author:
    Mikolaj Izdebski
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenPluginValidator​(org.apache.maven.artifact.Artifact pluginArtifact)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrors()  
      boolean hasErrors()  
      void validate​(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)  
      • Methods inherited from class java.lang.Object

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

      • MavenPluginValidator

        public MavenPluginValidator​(org.apache.maven.artifact.Artifact pluginArtifact)
    • Method Detail

      • validate

        public void validate​(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
      • hasErrors

        public boolean hasErrors()
      • getErrors

        public java.util.List<java.lang.String> getErrors()