Skip to content

Maven plugin that pauses the build for a specified amount of time

License

Notifications You must be signed in to change notification settings

fbrandes/sleep-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sleep-maven-plugin

Maven Central Build plugin Quality Gate Status Reliability Rating Coverage

Maven plugin that pauses the build for a specified amount of time

Getting started

Maven:

<dependency>
    <groupId>de.fbrandes.maven</groupId>
    <artifactId>sleep-maven-plugin</artifactId>
    <version>1.2.1</version>
</dependency>

Gradle

implementation 'de.fbrandes.maven:sleep-maven-plugin:1.2.1'

Usage

You can either call the sleep goal directly and pass an amount to sleep, like this:

mvn sleep:sleep -Dseconds=30

Or you can create an execution if you want to define a sleep during your build, for example:

<plugin>
    <groupId>de.fbrandes.maven</groupId>
    <artifactId>sleep-maven-plugin</artifactId>
    <version>1.2.1</version>
    <executions>
        <execution>
            <id>wait after compile</id>
            <phase>compile</phase>
            <goals>
                <goal>sleep</goal>
            </goals>
            <configuration>
                <seconds>2</seconds>
            </configuration>
        </execution>
    </executions>
</plugin>

License

Distributed under the Apache License. See LICENSE file for more information.

About

Maven plugin that pauses the build for a specified amount of time

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages