Class LocalIpMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="local-ip",
          defaultPhase=PROCESS_TEST_CLASSES,
          threadSafe=true)
    public class LocalIpMojo
    extends AbstractDefinePropertyMojo
    Retrieve current host IP address and place it under a configurable project property
    Since:
    1.8
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String localIpProperty
      The name of the property in which to store the localhost ipaddress.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalIpMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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 Detail

      • localIpProperty

        @Parameter(defaultValue="local.ip")
        private java.lang.String localIpProperty
        The name of the property in which to store the localhost ipaddress.
    • Constructor Detail

      • LocalIpMojo

        public LocalIpMojo()
    • Method Detail

      • execute

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