Class DisplayAncestorsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.DisplayAncestorsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="display-ancestors", threadSafe=true, requiresProject=true, defaultPhase=VALIDATE) public class DisplayAncestorsMojo extends org.apache.maven.plugin.AbstractMojo
Displays all ancestor POMs of the project. This may be useful in a continuous integration system where you want to know all parent poms of the project.
Since:
2.9
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.maven.project.MavenProject
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DisplayAncestorsMojo(org.apache.maven.project.MavenProject project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private ArrayList<String>
     
    void
     

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

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

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

    • project

      private org.apache.maven.project.MavenProject project
  • Constructor Details

    • DisplayAncestorsMojo

      @Inject public DisplayAncestorsMojo(org.apache.maven.project.MavenProject project)
  • 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
    • collectAncestors

      private ArrayList<String> collectAncestors()