https://github.com/scravy/waitfor-maven-plugin
  
  
    Wait for a URL to become available 
    https://github.com/scravy/waitfor-maven-plugin
  
integration-testing integration-tests java-8 java8 maven-plugin
        Last synced: 4 months ago 
        JSON representation
    
Wait for a URL to become available
- Host: GitHub
 - URL: https://github.com/scravy/waitfor-maven-plugin
 - Owner: scravy
 - License: bsd-2-clause
 - Created: 2018-04-04T15:30:25.000Z (over 7 years ago)
 - Default Branch: main
 - Last Pushed: 2022-05-10T04:36:56.000Z (over 3 years ago)
 - Last Synced: 2025-06-01T03:04:45.861Z (5 months ago)
 - Topics: integration-testing, integration-tests, java-8, java8, maven-plugin
 - Language: Java
 - Size: 29.3 KB
 - Stars: 8
 - Watchers: 9
 - Forks: 4
 - Open Issues: 2
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 - Code of conduct: CODE_OF_CONDUCT.md
 
 
Awesome Lists containing this project
README
          # waitfor-maven-plugin [](https://travis-ci.org/scravy/waitfor-maven-plugin)
Maven Coordinates:
    
    de.scravy
    waitfor-maven-plugin
    1.4
## Minimal Configuration Example
      
        de.scravy
        waitfor-maven-plugin
        1.4
        
          
            wait-for-environment-to-be-up
            pre-integration-test
            
              waitfor
            
            
              
                
                  http://localhost:8080/health
                
                
                  http://localhost:8080/loaded_components
                  {"component_1": "loaded", "component_2": "loaded"}
                
              
            
          
        
      
## Full Configuration Example
      
        de.scravy
        waitfor-maven-plugin
        1.4
        
          
            wait-for-environment-to-be-up
            pre-integration-test
            
              waitfor
            
            
              false
              false
              false
              false
              true
              30
              500
              
                
                  http://localhost:9090/health
                  GET
                  200
                  
                    
                      Authorization
                      Bearer SOMETOKEN
                    
                  
                
                
                  http://localhost:9090/resource
                  POST
                  201
                  
                  {
                    "some": "thing"
                  }
                  
                  
                    
                      Content-Type
                      application/json
                    
                  
                
              
            
          
        
      
## Options
### insecure
The `insecure` flag allows bypassing https certificate checks. This is handy when using self-signed certificates for
example.
### redirect
The `redirect` flag allows following or not the 302 REDIRECT response. Set it to `false` to avoid redirect.
If a redirect is sent by the server, the `statusCode` will be `302`.