Class HelpUtil


  • public class HelpUtil
    extends Object
    Utility methods to play with Help Mojos.
    Version:
    $Id: HelpUtil.java 1446786 2013-02-15 21:54:28Z rfscholte $
    Author:
    Vincent Siveton
    • Method Detail

      • getMojoDescriptor

        protected static org.apache.maven.plugin.descriptor.MojoDescriptor getMojoDescriptor​(String task,
                                                                                             org.apache.maven.execution.MavenSession session,
                                                                                             org.apache.maven.project.MavenProject project,
                                                                                             String invokedVia,
                                                                                             boolean canUsePrefix,
                                                                                             boolean isOptionalMojo)
                                                                                      throws org.apache.maven.plugin.MojoFailureException,
                                                                                             org.apache.maven.plugin.MojoExecutionException
        Invoke the following private method DefaultLifecycleExecutor#getMojoDescriptor(String, MavenSession, MavenProject, String, boolean, boolean)
        Parameters:
        task - not null
        session - not null
        project - not null
        invokedVia - not null
        canUsePrefix - not null
        isOptionalMojo - not null
        Returns:
        MojoDescriptor for the task
        Throws:
        org.apache.maven.plugin.MojoFailureException - if can not invoke the method.
        org.apache.maven.plugin.MojoExecutionException - if no descriptor was found for task.
        See Also:
        DefaultLifecycleExecutor.getMojoDescriptor(String, MavenSession, MavenProject, String, boolean, boolean)