There are a few parameters you will need to change on the hibernate plugin to get it to generate the ddl file. You need to set export, update, create and drop to false as well. You are correct in believing that the plugin will not fire if you set maven.test.skip to true. Note that the hibernate plugin only creates the table structure - the data is imported via the dbUnit plugin.
Mike On 11/20/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > It seems to be the day for Oracle questions. > > I'm trying to deploy my app to our test environment which has an Oracle > (10g) db but am having problems getting the data inserted. > > I thought I'd try and create a ddl file and simply execute that via a DB > client. > > My project is AppFuse 2 + Struts 2 Basic and I'm using the following > command in my project root: > > mvn hibernate3:hbm2ddl -Denv=test -Dexport=false > -Doutputfilename=oracle.ddl -Dmaven.test.skip=true > > I'm not sure about the "export" and "outputfilename" parameters, having > guessed at those from Hibernate Tools documentation. This executes > without error, but produces nothing AFAICT. I'm wondering if it's > skipping the ddl creation process because I'm skipping the tests > perhaps? However, if I leave out that step, it tries to connect to the > db server (I connect to that via a VPN link that's not up when I'm > running this). > > Is there another way to do this, or do I need to be able to connect to > the target db in order to generate the ddl? > > TIA, > > Rob Hills > Waikiki, Western Australia > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >