Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Created October 8, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarek-przygodzki/da0e09154d566f60ecb7c271c3e1023b to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/da0e09154d566f60ecb7c271c3e1023b to your computer and use it in GitHub Desktop.
How to introduce delay between executions in Maven
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<sleep seconds="10" />
</tasks>
</configuration>
<executions>
<execution>
<id>sleep-for-a-while</id>
<!-- When -->
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment