Class DisplayInfoMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

    @Mojo(name="display-info",
          threadSafe=true)
    public class DisplayInfoMojo
    extends org.apache.maven.plugin.AbstractMojo
    implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
    This goal displays the current platform information.
    Version:
    $Id: DisplayInfoMojo.java 1649120 2015-01-02 21:01:18Z khmarbaise $
    Author:
    Brian Fox
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.codehaus.plexus.PlexusContainer container  
      protected org.apache.maven.plugin.MojoExecution mojoExecution
      MojoExecution needed by the ExpressionEvaluator
      protected org.apache.maven.project.MavenProject project
      POM
      protected org.apache.maven.execution.MavenSession session
      The MavenSession
      protected org.apache.maven.project.path.PathTranslator translator
      Path Translator needed by the ExpressionEvaluator
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      DisplayInfoMojo()  
    • Field Detail

      • translator

        @Component(role=org.apache.maven.project.path.PathTranslator.class)
        protected org.apache.maven.project.path.PathTranslator translator
        Path Translator needed by the ExpressionEvaluator
      • mojoExecution

        @Parameter(defaultValue="${mojoExecution}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.plugin.MojoExecution mojoExecution
        MojoExecution needed by the ExpressionEvaluator
      • session

        @Parameter(defaultValue="${session}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.execution.MavenSession session
        The MavenSession
      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
        POM
      • container

        protected org.codehaus.plexus.PlexusContainer container
    • Constructor Detail

      • DisplayInfoMojo

        public DisplayInfoMojo()
    • Method Detail

      • contextualize

        public void contextualize​(org.codehaus.plexus.context.Context context)
                           throws org.codehaus.plexus.context.ContextException
        Specified by:
        contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
        Throws:
        org.codehaus.plexus.context.ContextException
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Entry point to the mojo
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException