Class ReserveListenerPortMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.ReserveListenerPortMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="reserve-network-port", defaultPhase=PROCESS_TEST_CLASSES, threadSafe=true) public class ReserveListenerPortMojo extends org.apache.maven.plugin.AbstractMojo
Reserve a list of random and not in use network ports and place them in a configurable project properties.
Since:
1.2
Version:
$Id: ReserveListnerPortMojo.java 6754 2008-04-13 15:14:04Z dantran $
Author:
Dan T. Tran
  • Constructor Details

    • ReserveListenerPortMojo

      public ReserveListenerPortMojo()
  • Method Details

    • execute

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

      public ServerSocket reservePort(int port) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException