Re: Use different database for test and package phase

2006-08-22 Thread Alexandre Russel
On Tuesday 22 August 2006 19:48, fagfa wrote: > Thanks. But I do want to use "-D" to pass database variable since I also > package for other databases, such as oracle, db2, psql, etc. Then using the antrun plugin you could copy the file ${myname}.properties to META-INF and use the -D to give a val

Re: Use different database for test and package phase

2006-08-22 Thread fagfa
ore package phase and using >> "hsql" database. >> >> Any suggestions? Thanks, > > -- View this message in context: http://www.nabble.com/Use-different-database-for-test-and-package-phase-tf2146572.html#a5930433 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Use different database for test and package phase

2006-08-22 Thread Alexandre Russel
On Tuesday 22 August 2006 16:15, fagfa wrote: I had the same problem testing ejb. The unit test where using toplink but package needed to use jboss. You could use mvn test, and then instead of using -Ddb=mysql, use the antrun plugin to copy mysq.properties into /META-INF and maybe delete the hsq

Re: Use different database for test and package phase

2006-08-22 Thread fagfa
test. So if I just do "mvn > test", it works perfectly. But if I do "mvn -Ddb=mysql package", I got a > problem, apparently. mysql.properties is copied to "class/META-INF" and > broke my unit tests, which are executed before package phase and using > "hs

Use different database for test and package phase

2006-08-22 Thread fagfa
quot;hsql" database. Any suggestions? Thanks, -- View this message in context: http://www.nabble.com/Use-different-database-for-test-and-package-phase-tf2146572.html#a5926419 Sent from the Maven - Users forum at Nabble.com. --