Pregunta

We are using a dependency to start a derby network server. How can I start the derby network server so that it keeps running. Now the server stops after the build.

¿Fue útil?

Solución

As described in my answer here, you can use Derby as your database via the derby-maven-plugin which I wrote and is available on GitHub and via Maven Central.

See here for details on how to use it. This will basically remove the need for you to start Derby through your tests and it will keep it up and running while the tests are executing. In combination with the sql-maven-plugin, you could have a reasonably decent testing environment.

To further clarify, the server does not run after the build has finished. However, under target/derby you can find your database which you can run, if you need to investigate the produced data.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top