Hi, Just an idea, I see here ( http://mojo.codehaus.org/sql-maven-plugin/execute-mojo.html#skip) there's a skip option. Have you tried adding the corresponding configuration, and just put something like:
<configuration> <skip>${maven.test.skip}</skip> </configuration> HTH. Cheers 2009/1/7 Eugeny N Dzhurinsky <b...@redwerk.com> > Hello! > > Can somebody please advice, is it possible to skip execution of certain > plugins, which are only needed when performing the tests? > > For instance, we need to prepare the correct SQL database for our tests, we > are using sql-maven-plugin to create the database and insert the required > data > into it. > > What we found is the test database is being created even in case if > -Dmaven.test.skip option was provided, and this is a bit confusing, since > we > don't want to drop/create/fill database if we want to build a package w/o > testing (yes, I know that's the bad idea, but sometimes we need go go this > way). > > The plugin is bound to the prepare-test-resources phase, and looks like it > is > invoked all the time, no matter whether the tests are to be invoked or not. > > Thank you in advance! > > -- > Eugene N Dzhurinsky > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !