Class DescribeMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.help.AbstractHelpMojo
org.apache.maven.plugins.help.DescribeMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="describe", requiresProject=false, aggregator=true) public class DescribeMojo extends AbstractHelpMojo
Displays a list of the attributes for a Maven Plugin and/or goals (aka Mojo - Maven plain Old Java Object).
Since:
2.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.maven.plugin.MavenPluginManager
    Component used to get a plugin descriptor from a given plugin.

    Fields inherited from class org.apache.maven.plugins.help.AbstractHelpMojo

    LINE_LENGTH, LS, output, project, projectBuilder, repositorySystem, session

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DescribeMojo(org.apache.maven.project.ProjectBuilder projectBuilder, org.eclipse.aether.RepositorySystem repositorySystem, org.apache.maven.plugin.MavenPluginManager pluginManager, org.apache.maven.lifecycle.internal.MojoDescriptorCreator mojoDescriptorCreator, org.apache.maven.plugin.version.PluginVersionResolver pluginVersionResolver, org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles, Map<String,org.apache.maven.lifecycle.mapping.LifecycleMapping> lifecycleMappings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void

    Methods inherited from class org.apache.maven.plugins.help.AbstractHelpMojo

    getAetherArtifact, getMavenProject, resolveArtifact, writeFile, writeFile

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

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

    • pluginManager

      protected final org.apache.maven.plugin.MavenPluginManager pluginManager
      Component used to get a plugin descriptor from a given plugin.
  • Constructor Details

    • DescribeMojo

      @Inject public DescribeMojo(org.apache.maven.project.ProjectBuilder projectBuilder, org.eclipse.aether.RepositorySystem repositorySystem, org.apache.maven.plugin.MavenPluginManager pluginManager, org.apache.maven.lifecycle.internal.MojoDescriptorCreator mojoDescriptorCreator, org.apache.maven.plugin.version.PluginVersionResolver pluginVersionResolver, org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles, Map<String,org.apache.maven.lifecycle.mapping.LifecycleMapping> lifecycleMappings)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException