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