Class DefaultBuildPluginManager.MojoWrapper

java.lang.Object
org.apache.maven.plugin.DefaultBuildPluginManager.MojoWrapper
All Implemented Interfaces:
Mojo
Enclosing class:
DefaultBuildPluginManager

private static class DefaultBuildPluginManager.MojoWrapper extends Object implements Mojo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Mojo
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    MojoWrapper(Mojo mojoV4)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Perform whatever build-process behavior this Mojo implements.
    This is the main trigger for the Mojo inside the Maven system, and allows the Mojo to communicate errors.
    Furnish access to the standard Maven logging mechanism which is managed in this base class.
    void
    setLog(Log log)
    Inject a standard Maven logging mechanism to allow this Mojo to communicate events and feedback to the user.

    Methods inherited from class java.lang.Object

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

    • mojoV4

      private final Mojo mojoV4
  • Constructor Details

    • MojoWrapper

      MojoWrapper(Mojo mojoV4)
  • Method Details

    • execute

      public void execute()
      Description copied from interface: Mojo
      Perform whatever build-process behavior this Mojo implements.
      This is the main trigger for the Mojo inside the Maven system, and allows the Mojo to communicate errors.
      Specified by:
      execute in interface Mojo
    • setLog

      public void setLog(Log log)
      Description copied from interface: Mojo
      Inject a standard Maven logging mechanism to allow this Mojo to communicate events and feedback to the user.
      Specified by:
      setLog in interface Mojo
      Parameters:
      log - a new logger
    • getLog

      public Log getLog()
      Description copied from interface: Mojo
      Furnish access to the standard Maven logging mechanism which is managed in this base class.
      Specified by:
      getLog in interface Mojo
      Returns:
      a log4j-like logger object which allows plugins to create messages at levels of "debug", "info", "warn", and "error".