I have maven profile set for testing where in pre-integration-tests maven starts two jetty servers and afterwards tests are started. The problem I\'ve stumbled into is in the se
You can do it with the help of the maven antrun plugin. Something like this:
org.apache.maven.plugins
maven-antrun-plugin
sleep-for-a-while
pre-integration-test
run
EDIT: In case someone will catch this. Based on the comment from jl, tasks have indeed been deprecated and here is the same thing based on using targets instead. Sligthly reorganized but has the same function.
org.apache.maven.plugins
maven-antrun-plugin
1.8
sleep-for-a-while
pre-integration-test
run