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.
Asked
Active
Viewed 171 times
1 Answers
2
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.

Community
- 1
- 1

carlspring
- 31,231
- 29
- 115
- 197
-
This works for me, I can start derby by "mvn derby:start" and it keeps running, Thanks – Ibrahim B. Mar 06 '14 at 08:07
-
Good to hear! Feel free to file any bugs on Github. – carlspring Mar 06 '14 at 09:20