-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
78 lines (68 loc) · 2.78 KB
/
pom.xml
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
75
76
77
78
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>FlywayTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<flyway.url>select_a_profile_please</flyway.url>
<flyway.user>select_a_profile_please</flyway.user>
<flyway.password>do_not_store_the_password_in_SCM</flyway.password>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>6.5.6</version>
<configuration>
<!-- Do not create schema, when it does not exist -->
<createSchemas>false</createSchemas>
<!-- Don't allow the "clean" command -->
<cleanDisabled>true</cleanDisabled>
</configuration>
</plugin>
<plugin>
<!-- build throws error if not definied, but not used anyway -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>19.7.0.0</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>schemaowner</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<flyway.url>jdbc:oracle:thin:@localhost:1521/xe</flyway.url>
<flyway.user>c##schemauser</flyway.user>
<!-- DON'T STORE passwords in SCM! Here it's just done cause of laziness during the evaluation-->
<flyway.password>oracle</flyway.password>
</properties>
</profile>
<profile>
<id>system</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<flyway.url>jdbc:oracle:thin:@localhost:1521/xe</flyway.url>
<flyway.user>system</flyway.user>
<flyway.schemas>c##schemauser</flyway.schemas>
</properties>
</profile>
</profiles>
</project>