Skip to content

Maven plugin that waits until a connection is available. In the case of an http connection, waits for a 200 response

License

Notifications You must be signed in to change notification settings

RBGKew/maven-wait-http-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven-wait-http-plugin

Maven plugin that waits until a connection is available. In the case of an http connection, waits for a 200 response.

Parameters

Parameter Default Usage
protocol http Protocol of connection. If http, waits for 200 response, otherwise just waits for connection
host localhost
port 8080
file / Path to fetch
timeout 30000 Time in ms to wait between tries
maxcount 0 Maximum number of time to try connecting before failing
skip false
read false Read the response instead of just opening connection
initialWait 0 Time in ms to wait before initial try connecting
username A username used for basic authentication
password The password used for basic authentication

Usage

<build>
  <plugins>
    <plugin>
      <groupId>org.kew.maven.plugins</groupId>
      <artifactId>wait-http-maven-plugin</artifactId>
      <version>1.0-SNAPSHOT</version>
      <executions>
        <execution>
          <id>test</id>
          <phase>pre-integration-test</phase>
          <goals>
            <goal>wait-http</goal>
          </goals>
          <configuration>
            <protocol>http</protocol>
            <host>localhost</host>
            <port>1080</port>
            <file>/</file>
            <maxcount>20</maxcount>
            <timeout>10000</timeout>
            <initialWait>10000</initialWait>
            <username>admin</username>
            <password>admin</password>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

About

Maven plugin that waits until a connection is available. In the case of an http connection, waits for a 200 response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages