Class LocalIpMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
org.codehaus.mojo.buildhelper.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 Details

    • localIpProperty

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

    • LocalIpMojo

      public LocalIpMojo()
  • Method Details

    • execute

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