On Thu, Jun 12, 2008 at 5:13 PM, Kathryn Huxtable < [EMAIL PROTECTED]> wrote:
> I'm working on converting an Internet2 ant project (ldappc) to Maven. (I > can't stand ant.) The project interacts with two databases and an LDAP > directory. Specifically, it provisions certain attributes in LDAP from the > databases. > > The test suite uses a user-supplied LDAP directory and two HSQL databases. > It would be nice if before running the tests Maven could start up the > databases from initial settings and make sure LDAP was running on localhost. > Then it would be nice if it could shut down the databases and (possibly) > LDAP after all the tests have been run. > > I can easily see via standard JUnit processes how to do this for each test, > but I'd prefer to do it globally. > I'll give you a partial answer: since cargo can do this for web containers, it's certainly possible to have a plugin that does that for a lightweight databaser server like HSQL. That said, I don't actually know if there's a plugin that is capable of doing that for HSQL. There are no quick answers on a Google search. You could looking at this: http://www.jroller.com/vschiavoni/entry/my_first_mojo_maven_hsqldb -- Geoffrey Wiseman
