Maven plugin that pauses the build for a specified amount of time
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'
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>
Distributed under the Apache License. See LICENSE file for more information.