Good day to you, Deluigi, I am not sure why maven-antrun-plugin will only execute the first execute. But why would you want to put some delay in the first place? If you're waiting for a process in one of your tests to finish, then that delay (or wait) should be in your test case.
Cheers, Franz Deluigi Marcus wrote: > > Hi > > I am quite desperate: I want to let Maven sleep for a few seconds > between the tests. > I added this ant tasks in the build phase in a previous project and it > worked fine: > -----8<----- > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > <configuration> > <tasks> > <echo message="Sleeping now for 5 seconds:" /> > <sleep seconds="1" /> > <echo message="1" /> > <sleep seconds="2" /> > <echo message="2" /> > <sleep seconds="3" /> > <echo message="3" /> > <sleep seconds="4" /> > <echo message="4" /> > <sleep seconds="5" /> > <echo message="5" /> > </tasks> > </configuration> > <executions> > <execution> > <id>wait</id> > <phase>test</phase> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > ----->8----- > > However, in my new project, this task never gets executed and I just > can't figure out why. > Everything seems the same. If I change the phase from "test" to > "generate-test-sources" I get the first echo task, but not the whole > process. But the effective pom looks fine. > > Can anybody give me a hint, what might go wrong? > Is there any other way to let maven wait for a few seconds between the > tests? > > Thanks for any help! > > Greetings, > Marcus > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Let-Maven-wait-between-tests-tf2628218s177.html#a7373543 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
