-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpom.xml
More file actions
74 lines (68 loc) · 2.87 KB
/
Copy pathpom.xml
File metadata and controls
74 lines (68 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.timandersen</groupId>
<artifactId>flyway-example</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<flyway.version>3.2.1</flyway.version>
<mysql.driver.version>8.0.28</mysql.driver.version>
<database.driver>com.mysql.jdbc.Driver</database.driver>
<database.url>jdbc:mysql://localhost:3306/customer_dev?autoreconnect=true</database.url>
<database.username>admin</database.username>
<database.password>p@ssw0rd</database.password>
</properties>
<dependencies>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>${flyway.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.driver.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>${flyway.version}</version>
<configuration>
<driver>${database.driver}</driver>
<url>${database.url}</url>
<user>${database.username}</user>
<password>${database.password}</password>
<schemas>
<schema>customer_dev</schema>
</schemas>
<locations>
<location>sql/migrations</location>
</locations>
<encoding>ISO-8859-1</encoding>
<cleanOnValidationError>true</cleanOnValidationError>
<placeholders>
<email_type.primary>Primary</email_type.primary>
<email_type.work>Work</email_type.work>
<phone_type.home>Home</phone_type.home>
</placeholders>
</configuration>
<executions>
<execution>
<id>flyway database migration</id>
<phase>pre-integration-test</phase>
<goals>
<goal>clean</goal>
<goal>baseline</goal>
<goal>migrate</goal>
<goal>info</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>