Change db configuration
parent
14433d66fb
commit
50ba713042
74
pom.xml
74
pom.xml
|
@ -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>-->
|
||||
<!--<!–<srcFile>others/database/ddl/init-data.sql</srcFile>–>-->
|
||||
<!--</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>
|
||||
|
|
Loading…
Reference in New Issue