Maybe you should better use the sql-maven-plugin --> http://mojo.codehaus.org/sql-maven-plugin/examples/execute.html
-----Original Message----- From: Menelaos Perdikeas [mailto:mperdik...@semantix.gr] Sent: Mittwoch, 27. Januar 2010 14:04 To: user@mojo.codehaus.org Subject: [mojo-user] org.codehaus.mojo-exec-maven-plugin-1.1.1. exec goal hangs the mvn build Hi, I am using the org.codehaus.mojo exec plugin version 1.1.1. (the "exec" not the "java" goal) to spawn an external database to be used for integration testing. My idea is to: 1. pre-integration-test phase: execute the codehaus exec plugin to spawn an HSQLDB Server prior to integration testing 2. integration-test phase : do the integration tests (which utilize the database) 3. post-integration test phase: clean the database and shut it down nicely. Problem is I haven't got past step #1 as upon starting the database the mvn executable apparently "hangs" waiting for the database to exit. Here is my relevant POM section: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <executions> <execution> <id>launching HSQDL DB for testing</id> <phase>pre-integration-test</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>java</executable> <arguments> <argument>-classpath</argument> <classpath/> <argument>org.hsqldb.Server</argument> <argument>-database.0</argument> <argument>file:target/data/tutorial</argument> </arguments> </configuration> </execution> </executions> </plugin> -- Dr. -Ing. Menelaos Perdikeas Semantix Information Technologies email: mperdik...@semantix.gr web : http://www.semantix.gr, http://www.tapeditor.com phone: (+30)210-6412065 fax : (+30)210-6412068 addr.: Konstantinou Tsaldari 62, 11476, Athens, GREECE --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email