You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ia...@jpmchase.com on 2006/04/17 16:01:17 UTC

derby-maven-plugin

Dear List,

I am working on a database-centric web app, which I am using Maven2 to
manage.  In order to improve test runtimes and reduce dependencies on
external changes, I am using Apache Derby's EmbeddedDriver for database
interaction in the unit tests.

Once I've created the database and tables within Derby and populated the
tables with sample data, the tests run fine.  However, whenever somebody
else checks out the source and does 'mvn install', the tests fail quite
spectacularly (not really surprising, since the database infrastructure is
not in place on their machine).

Does anyone know of a mechanism within Maven (either a generic facility or
something specific to Derby) that can be used to create and populate the
database if it doesn't exist already?


Thanks,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: derby-maven-plugin

Posted by carlspring <ca...@gmail.com>.

Hi,

I see this is an old post, but since I faced the same sort of problem, I'd
like to let you know that I knocked up a simple Maven plugin for Derby.

It can be found here:
https://github.com/carlspring/derby-maven-plugin

I have pushed the plugin to Maven Central and it should be available withing
a few hours.

Regards,

M.




--
View this message in context: http://maven.40175.n5.nabble.com/derby-maven-plugin-tp61992p5569899.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: derby-maven-plugin

Posted by Jimisola Laursen <li...@jimisola.com>.
Hi!

I am trying to get Derby to work just like Ian Stewart - with a new Derby
database for each module.

Your Spring example looks promising, sadly I have no experience with Spring
(yet).
Do I place to code below in the top level pom.xml? What else needed - an
example with more information would be great. I don't want to use the Derby
database under target in our shipped product - it's is strictly for testing.

Also, we plan on setting up our Continous Integration environment so that it
will run the tests on all support databases. What is the best approach for
this? Does there exist a useful plugin? Do we use profiles? ...?

Regards,
Jimisola
--
View this message in context: http://www.nabble.com/derby-maven-plugin-t1461715.html#a4855389
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org