This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
147 lines (140 loc) · 6.04 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?xml version="1.0" encoding="UTF-8"?>
<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>org.ehrbase.testdata</groupId>
<artifactId>loader</artifactId>
<version>1.0.0-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.5</version>
</parent>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<archie.version>2.0.1</archie.version>
<jooq.version>3.16.5</jooq.version>
<ehrbase-sdk.version>1.19.0-SNAPSHOT</ehrbase-sdk.version>
<yugabytedb.version>42.3.4</yugabytedb.version>
</properties>
<profiles>
<profile>
<id>postgres</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<db.url>jdbc:postgresql://localhost:5432/ehrbase</db.url>
<db.username>ehrbase</db.username>
<db.password>ehrbase</db.password>
<db.driver>org.postgresql.Driver</db.driver>
<jooq.database-name>org.jooq.meta.postgres.PostgresDatabase</jooq.database-name>
<jooq.sql-dialect>postgres</jooq.sql-dialect>
</properties>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>yugabyte</id>
<properties>
<db.url>jdbc:yugabytedb://localhost:5433/ehrbase</db.url>
<db.username>ehrbase</db.username>
<db.password>ehrbase</db.password>
<db.driver>com.yugabyte.Driver</db.driver>
<jooq.database-name>org.jooq.meta.yugabytedb.YugabyteDBDatabase</jooq.database-name>
<jooq.sql-dialect>yugabytedb</jooq.sql-dialect>
</properties>
<dependencies>
<dependency>
<groupId>com.yugabyte</groupId>
<artifactId>jdbc-yugabytedb</artifactId>
<version>${yugabytedb.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<jdbc>
<url>${db.url}</url>
<user>${db.username}</user>
<password>${db.password}</password>
<driver>${db.driver}</driver>
</jdbc>
<generator>
<database>
<name>${jooq.database-name}</name>
<inputSchema>ehr</inputSchema>
<forcedTypes>
<forcedType>
<userType>
java.util.AbstractMap.SimpleEntry<java.time.OffsetDateTime,
java.time.OffsetDateTime>
</userType>
<binding>org.ehrbase.testdata.loader.jooq.binding.SysPeriodBinder</binding>
<includeExpression>sys_period</includeExpression>
<includeTypes>.*</includeTypes>
</forcedType>
</forcedTypes>
</database>
<target>
<packageName>org.ehrbase.testdata.loader.jooq</packageName>
<directory>${project.build.directory}/generated-sources/jooq</directory>
</target>
</generator>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-meta</artifactId>
</dependency>
<dependency>
<groupId>com.nedap.healthcare.archie</groupId>
<artifactId>archie-utils</artifactId>
<version>${archie.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>serialisation</artifactId>
<version>${ehrbase-sdk.version}</version>
</dependency>
</dependencies>
</project>