Look into the prod profile. In principle you can use the "skip" switch. Below is an excerpt of a project of mine. It skips tests, database creation and database population. Note that the "drop" property in hibernate3 plugin must be set to 'false'.
<plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dbunit-maven-plugin</artifactId> <version>1.0-beta-1</version> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.1</version> <configuration> <components> <component> <name>hbm2ddl</name> <implementation>annotationconfiguration</implementation> </component> </components> <componentProperties> <drop>false</drop> <jdk5>true</jdk5> <propertyfile>target/classes/jdbc.properties</propertyfile> <skip>true</skip> </componentProperties> </configuration> </plugin> Developeryours wrote: > > hi, > > I am having an problem regarding once i build the project it creates new > database everytime..so my old datas are lossed..so i need to prevent that > to creating databse if exists...so how can change it in pom.xml > > > Thanks > > Developer > -- View this message in context: http://www.nabble.com/how-can-i-stop-creating-database-in-build-time-tp20124542s2369p20126932.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]