Change db configuration

0.2
lishengzhao 2014-01-18 14:14:11 +08:00
parent 14433d66fb
commit 50ba713042
1 changed files with 37 additions and 37 deletions

74
pom.xml
View File

@ -83,45 +83,45 @@
</configuration>
</plugin>
<!--<plugin>-->
<!--<groupId>org.codehaus.mojo</groupId>-->
<!--<artifactId>sql-maven-plugin</artifactId>-->
<!--<version>1.4</version>-->
<!--<dependencies>-->
<!--<dependency>-->
<!--<groupId>mysql</groupId>-->
<!--<artifactId>mysql-connector-java</artifactId>-->
<!--<version>5.1.6</version>-->
<!--</dependency>-->
<!--</dependencies>-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.4</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
</dependencies>
<!--<configuration>-->
<!--<driver>${jdbc.driver}</driver>-->
<!--<url>${jdbc.url}</url>-->
<!--<username>${jdbc.user}</username>-->
<!--<password>${jdbc.pass}</password>-->
<!--<skip>${jdbc.execute.skip}</skip>-->
<!--</configuration>-->
<configuration>
<driver>${jdbc.driver}</driver>
<url>${jdbc.url}</url>
<username>${jdbc.user}</username>
<password>${jdbc.pass}</password>
<skip>${jdbc.execute.skip}</skip>
</configuration>
<!--<executions>-->
<!--<execution>-->
<!--<id>init db</id>-->
<!--<phase>initialize</phase>-->
<!--<goals>-->
<!--<goal>execute</goal>-->
<!--</goals>-->
<!--<configuration>-->
<!--<url>${jdbc.url}</url>-->
<!--<autocommit>true</autocommit>-->
<!--<srcFiles>-->
<!--<srcFile>others/database/initial_db.ddl</srcFile>-->
<!--&lt;!&ndash;<srcFile>others/database/ddl/init-data.sql</srcFile>&ndash;&gt;-->
<!--</srcFiles>-->
<!--<onError>continue</onError>-->
<!--</configuration>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->
<executions>
<execution>
<id>init db</id>
<phase>initialize</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<url>${jdbc.url}</url>
<autocommit>true</autocommit>
<srcFiles>
<srcFile>others/database/initial_db.ddl</srcFile>
<srcFile>others/database/oauth.ddl</srcFile>
</srcFiles>
<onError>continue</onError>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4</version>