@@ -41,6 +41,18 @@ SPDX-License-Identifier: Apache-2.0
41
41
<groupId >org.lfenergy.compas.scl.data</groupId >
42
42
<artifactId >service</artifactId >
43
43
</dependency >
44
+ <dependency >
45
+ <groupId >org.lfenergy.compas.scl.data</groupId >
46
+ <artifactId >repository</artifactId >
47
+ </dependency >
48
+ <dependency >
49
+ <groupId >org.lfenergy.compas.scl.data</groupId >
50
+ <artifactId >repository-basex</artifactId >
51
+ </dependency >
52
+ <dependency >
53
+ <groupId >org.lfenergy.compas.scl.data</groupId >
54
+ <artifactId >repository-postgresql</artifactId >
55
+ </dependency >
44
56
45
57
<dependency >
46
58
<groupId >org.lfenergy.compas.core</groupId >
@@ -59,6 +71,14 @@ SPDX-License-Identifier: Apache-2.0
59
71
<groupId >io.quarkus</groupId >
60
72
<artifactId >quarkus-resteasy</artifactId >
61
73
</dependency >
74
+ <dependency >
75
+ <groupId >io.quarkus</groupId >
76
+ <artifactId >quarkus-resteasy-jaxb</artifactId >
77
+ </dependency >
78
+ <dependency >
79
+ <groupId >io.quarkus</groupId >
80
+ <artifactId >quarkus-hibernate-validator</artifactId >
81
+ </dependency >
62
82
<dependency >
63
83
<groupId >io.quarkus</groupId >
64
84
<artifactId >quarkus-smallrye-jwt</artifactId >
@@ -73,15 +93,23 @@ SPDX-License-Identifier: Apache-2.0
73
93
</dependency >
74
94
<dependency >
75
95
<groupId >io.quarkus</groupId >
76
- <artifactId >quarkus-resteasy-jaxb </artifactId >
96
+ <artifactId >quarkus-agroal </artifactId >
77
97
</dependency >
78
98
<dependency >
79
99
<groupId >io.quarkus</groupId >
80
- <artifactId >quarkus-container-image-docker </artifactId >
100
+ <artifactId >quarkus-narayana-jta </artifactId >
81
101
</dependency >
82
102
<dependency >
83
103
<groupId >io.quarkus</groupId >
84
- <artifactId >quarkus-hibernate-validator</artifactId >
104
+ <artifactId >quarkus-flyway</artifactId >
105
+ </dependency >
106
+ <dependency >
107
+ <groupId >io.quarkus</groupId >
108
+ <artifactId >quarkus-jdbc-postgresql</artifactId >
109
+ </dependency >
110
+ <dependency >
111
+ <groupId >io.quarkus</groupId >
112
+ <artifactId >quarkus-container-image-docker</artifactId >
85
113
</dependency >
86
114
87
115
<!-- Test Dependencies -->
@@ -131,95 +159,61 @@ SPDX-License-Identifier: Apache-2.0
131
159
<extensions >true</extensions >
132
160
<executions >
133
161
<execution >
162
+ <id >build-generic</id >
134
163
<goals >
135
- <goal >build</goal >
136
164
<goal >generate-code</goal >
137
165
<goal >generate-code-tests</goal >
138
166
</goals >
139
167
</execution >
168
+ <execution >
169
+ <id >build-basex</id >
170
+ <goals >
171
+ <goal >build</goal >
172
+ </goals >
173
+ <configuration >
174
+ <properties >
175
+ <quarkus .profile>prod-basex</quarkus .profile>
176
+ <quarkus .package.output-directory>basex-quarkus-app</quarkus .package.output-directory>
177
+ <quarkus .docker.dockerfile-jvm-path>src/main/docker/Dockerfile-basex.jvm</quarkus .docker.dockerfile-jvm-path>
178
+ <quarkus .docker.dockerfile-native-path>src/main/docker/Dockerfile-basex.native</quarkus .docker.dockerfile-native-path>
179
+ <quarkus .container-image.tag>${project.version} -basex</quarkus .container-image.tag>
180
+ <quarkus .container-image.additional-tags>latest-basex</quarkus .container-image.additional-tags>
181
+ </properties >
182
+ </configuration >
183
+ </execution >
184
+ <execution >
185
+ <id >build-postgresql</id >
186
+ <goals >
187
+ <goal >build</goal >
188
+ </goals >
189
+ <configuration >
190
+ <properties >
191
+ <quarkus .profile>prod-postgresql</quarkus .profile>
192
+ <quarkus .package.output-directory>postgresql-quarkus-app</quarkus .package.output-directory>
193
+ <quarkus .docker.dockerfile-jvm-path>src/main/docker/Dockerfile-postgresql.jvm</quarkus .docker.dockerfile-jvm-path>
194
+ <quarkus .docker.dockerfile-native-path>src/main/docker/Dockerfile-postgresql.native</quarkus .docker.dockerfile-native-path>
195
+ <quarkus .container-image.tag>${project.version} -postgresql</quarkus .container-image.tag>
196
+ <quarkus .container-image.additional-tags>latest-postgresql</quarkus .container-image.additional-tags>
197
+ </properties >
198
+ </configuration >
199
+ </execution >
140
200
</executions >
141
201
</plugin >
202
+
203
+ <plugin >
204
+ <groupId >org.apache.maven.plugins</groupId >
205
+ <artifactId >maven-surefire-plugin</artifactId >
206
+ <configuration >
207
+ <systemPropertyVariables >
208
+ <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
209
+ <maven .home>${maven.home} </maven .home>
210
+ </systemPropertyVariables >
211
+ </configuration >
212
+ </plugin >
142
213
</plugins >
143
214
</build >
144
215
145
216
<profiles >
146
- <profile >
147
- <id >basex</id >
148
-
149
- <activation >
150
- <activeByDefault >true</activeByDefault >
151
- </activation >
152
-
153
- <properties >
154
- <quarkus .profile>prod,prod-basex</quarkus .profile>
155
- </properties >
156
-
157
- <dependencies >
158
- <dependency >
159
- <groupId >org.lfenergy.compas.scl.data</groupId >
160
- <artifactId >repository-basex</artifactId >
161
- <scope >runtime</scope >
162
- </dependency >
163
- </dependencies >
164
-
165
- <build >
166
- <plugins >
167
- <plugin >
168
- <groupId >org.apache.maven.plugins</groupId >
169
- <artifactId >maven-surefire-plugin</artifactId >
170
- <configuration >
171
- <systemPropertyVariables >
172
- <quarkus .test.profile>test,prod-basex</quarkus .test.profile>
173
- <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
174
- <maven .home>${maven.home} </maven .home>
175
- </systemPropertyVariables >
176
- </configuration >
177
- </plugin >
178
- </plugins >
179
- </build >
180
- </profile >
181
-
182
- <profile >
183
- <id >postgres</id >
184
-
185
- <properties >
186
- <quarkus .profile>prod,prod-postgres</quarkus .profile>
187
- </properties >
188
-
189
- <dependencies >
190
- <dependency >
191
- <groupId >org.lfenergy.compas.scl.data</groupId >
192
- <artifactId >repository-postgresql</artifactId >
193
- <scope >runtime</scope >
194
- </dependency >
195
-
196
- <dependency >
197
- <groupId >io.quarkus</groupId >
198
- <artifactId >quarkus-narayana-jta</artifactId >
199
- </dependency >
200
- <dependency >
201
- <groupId >io.quarkus</groupId >
202
- <artifactId >quarkus-agroal</artifactId >
203
- </dependency >
204
- </dependencies >
205
-
206
- <build >
207
- <plugins >
208
- <plugin >
209
- <groupId >org.apache.maven.plugins</groupId >
210
- <artifactId >maven-surefire-plugin</artifactId >
211
- <configuration >
212
- <systemPropertyVariables >
213
- <quarkus .test.profile>test,prod-postgres</quarkus .test.profile>
214
- <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
215
- <maven .home>${maven.home} </maven .home>
216
- </systemPropertyVariables >
217
- </configuration >
218
- </plugin >
219
- </plugins >
220
- </build >
221
- </profile >
222
-
223
217
<profile >
224
218
<id >native</id >
225
219
@@ -237,13 +231,14 @@ SPDX-License-Identifier: Apache-2.0
237
231
<version >${surefire-plugin.version} </version >
238
232
<executions >
239
233
<execution >
234
+ <id >integration-test-basex</id >
240
235
<goals >
241
236
<goal >integration-test</goal >
242
237
<goal >verify</goal >
243
238
</goals >
244
239
<configuration >
245
240
<systemPropertyVariables >
246
- <native .image.path>${project.build.directory} /${project.build.finalName} -runner</native .image.path>
241
+ <native .image.path>${project.build.directory} /basex-quarkus-app/ ${project.build.finalName} -runner</native .image.path>
247
242
<java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
248
243
<maven .home>${maven.home} </maven .home>
249
244
</systemPropertyVariables >
@@ -273,7 +268,6 @@ SPDX-License-Identifier: Apache-2.0
273
268
<!-- Properties only used for publishing a native docker image (default to Docker Hub) -->
274
269
<quarkus .container-image.build>true</quarkus .container-image.build>
275
270
<quarkus .container-image.push>true</quarkus .container-image.push>
276
- <quarkus .container-image.additional-tags>latest</quarkus .container-image.additional-tags>
277
271
</properties >
278
272
</profile >
279
273
</profiles >
0 commit comments