GithubHelp home page GithubHelp logo

transamericamoon / maven-wait-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tacitknowledge/maven-wait-plugin

0.0 2.0 0.0 5 KB

Causes build to pause until a URL becomes available.

License: Other

Java 100.00%

maven-wait-plugin's Introduction

Maven2 plugin, that waits on an URL (for a server startup).


Goals

Can be used inside a pre-integration-test phase.

A bit more background on the reasoning behind this plugin: We're doing automated integration tests cargo and Simulator running on Jboss. There is a long timeout gap after Jboss starts up and before simulator is accessible. We need to make sure simulator is available by pinging that URl.


POM usage:

com.tacitknowledge.maven.plugins tk-maven-wait-plugin
<!-- define parameters here (defaults)  -->
<configuration>
  <skip>false</skip>
</configuration>
<version>1.0</version>
<executions>
  <execution>
    <id>server1</id>
    <phase>pre-integration-test</phase>
    <goals>
      <goal>wait</goal>
    </goals>
    <configuration>
    <!-- or define them here (overwriting defaults) -->
      <protocol>http</protocol>
      <host>mot-jboss</host>
      <port>8080</port>
      <file>/simulator/systems.json</file>
      <maxcount>0</maxcount>
      <timeout>10000</timeout>
      <read>true</read>
    </configuration>
  </execution>

  <execution>
    <id>server2</id>
    <phase>pre-integration-test</phase>
    <goals>
      <goal>wait</goal>
    </goals>
    <configuration>
      <protocol>http</protocol>
      <host>bsm01.mcloud1.qa3.blurdev.com</host>
      <port>8080</port>
      <file>/simulator/systems.json</file>
      <maxcount>20</maxcount>
      <timeout>10000</timeout>
    </configuration>
  </execution>
</executions>

Configuration:

Parameter Description Type, default-value skip true when wait plugin should NOT execute boolean, false protocol URL.protocol string, http host URL.host string, localhost port URL.port int, 8080 file URL.file string timeout connect-timeout in milliseconds int, 30000 maxcount max. number of trials (0 = unlimited) 0 read true when on connection data is read boolean, true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.