GithubHelp home page GithubHelp logo

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

maven-wait-plugin's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

maven-wait-plugin's Issues

[DepShield] Vulnerability due to usage of commons-beanutils:commons-beanutils:1.7.0

Vulnerabilities

DepShield reports that this application's usage of commons-beanutils:commons-beanutils:1.7.0 results in the following vulnerability(s):


Occurrences

commons-beanutils:commons-beanutils:1.7.0 is a transitive dependency introduced by the following direct dependency(s):

org.apache.maven.plugins:maven-dependency-plugin:2.0
        └─ org.apache.maven.reporting:maven-reporting-impl:2.0.4
              └─ commons-validator:commons-validator:1.2.0
                    └─ commons-beanutils:commons-beanutils:1.7.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] Vulnerability due to usage of commons-collections:commons-collections:2.0

Vulnerabilities

DepShield reports that this application's usage of commons-collections:commons-collections:2.0 results in the following vulnerability(s):


Occurrences

commons-collections:commons-collections:2.0 is a transitive dependency introduced by the following direct dependency(s):

org.apache.maven.plugins:maven-dependency-plugin:2.0
        └─ org.apache.maven.doxia:doxia-site-renderer:1.0-alpha-8
              └─ org.codehaus.plexus:plexus-velocity:1.1.3
                    └─ commons-collections:commons-collections:2.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Missing artifact in Maven repository

Hi,

I tried to use this plugin in my project and when I use it, I am getting the following error.
[ERROR] Plugin com.tacitknowledge.maven.plugins:tk-maven-wait-plugin:1.0 or one of its dependencies could not be resolved: Could not find artifact com.tacitknowledge.maven.plugins:tk-maven-wait-plugin:jar:1.0 in central (https://repo.maven.apache.org/maven2)

The reason is because I couldn't see tk-maven-wait-plugin:jar on search.maven.org.

Please upload this missing artifact as it will be quite useful for me.
http://search.maven.org/#search%7Cga%7C1%7Ccom.tacitknowledge.maven.plugins

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.