This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Hudson and Maven - pre build steps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Hudson and Maven - pre build steps" Watch "Hudson and Maven - pre build steps" New topic

Hudson and Maven - pre build steps

Craig Taylor
Ranch Hand

Joined: Jul 17, 2008
Posts: 64
For the test portion of my maven project I'd like to either configure hudson or maven to run a createDb script and subsequently, upon successful tests run the purgeDb script.

I've been unable to find anything in maven to help me modify the test target.

In hudson, because this is a maven target it doesn't give me the build steps that I've used previously to do something similar.

Any suggestions?
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

Hi there,

Have you thought about using DB Unit for this?

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link:
subject: Hudson and Maven - pre build steps
It's not a secret anymore!