Hi,
I would not delete it but configure it properly.
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
</component>
</components>
<componentProperties>
<drop>false</drop> <!-- drop the database and
its constraints -->
<jdk5>true</jdk5>
</componentProperties>
</configuration>
........
More on configuring the hibernate maven plugin can be found here:
http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/componentproperties.html
regards
Mauri Ferreyra schrieb:
Change plugin org.codehaus.mojo, delete:
<executions>
<execution>
<phase>process-test-resources</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
</execution>
</executions>
regards!
On Tue, Aug 12, 2008 at 12:34 PM, krishgy <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I tried that. But no luck. I use postgres db
Cens wrote:
>
> Change <dbunit.operation.type> in pom.xml, from value
CLEAN_INSERT to
> NONE
>
> Vincenzo Caselli
>
>
> On Tue, Aug 12, 2008 at 5:07 PM, krishgy <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
>
>>
>> Hi All,
>>
>> I have AppFuse (Basic Struts, Hibernate and Spring) projects.
Every time
>> I
>> package, run the test or run the mvn jetty:run-war, I am
getting the data
>> base tables are deleted and again they are created and test
data are
>> inserted. I do not want to do this until or unless there are schema
>> changes.
>>
>> How do disable this behavior.
>>
>> Thanks in advance
>>
>> Regards,
>>
>> Krish
>> --
>> View this message in context:
>>
http://www.nabble.com/How-to-disable-table-creation-every-time-tp18946212s2369p18946212.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>>
---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/How-to-disable-table-creation-every-time-tp18946212s2369p18946795.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
Mauricio F. Ferreyra |tel #: (0351) 156-623072 | Cordoba - Argentina
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]