@@ -41,11 +41,6 @@ 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-basex</artifactId >
47
- <scope >runtime</scope >
48
- </dependency >
49
44
50
45
<dependency >
51
46
<groupId >org.lfenergy.compas.core</groupId >
@@ -100,6 +95,11 @@ SPDX-License-Identifier: Apache-2.0
100
95
<artifactId >quarkus-junit5-mockito</artifactId >
101
96
<scope >test</scope >
102
97
</dependency >
98
+ <dependency >
99
+ <groupId >org.mockito</groupId >
100
+ <artifactId >mockito-junit-jupiter</artifactId >
101
+ <scope >test</scope >
102
+ </dependency >
103
103
<dependency >
104
104
<groupId >io.rest-assured</groupId >
105
105
<artifactId >rest-assured</artifactId >
@@ -139,21 +139,83 @@ SPDX-License-Identifier: Apache-2.0
139
139
</execution >
140
140
</executions >
141
141
</plugin >
142
-
143
- <plugin >
144
- <groupId >org.apache.maven.plugins</groupId >
145
- <artifactId >maven-surefire-plugin</artifactId >
146
- <configuration >
147
- <systemPropertyVariables >
148
- <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
149
- <maven .home>${maven.home} </maven .home>
150
- </systemPropertyVariables >
151
- </configuration >
152
- </plugin >
153
142
</plugins >
154
143
</build >
155
144
156
145
<profiles >
146
+ <profile >
147
+ <id >basex</id >
148
+
149
+ <properties >
150
+ <quarkus .profile>prod,prod-basex</quarkus .profile>
151
+ </properties >
152
+
153
+ <dependencies >
154
+ <dependency >
155
+ <groupId >org.lfenergy.compas.scl.data</groupId >
156
+ <artifactId >repository-basex</artifactId >
157
+ <scope >runtime</scope >
158
+ </dependency >
159
+ </dependencies >
160
+
161
+ <build >
162
+ <plugins >
163
+ <plugin >
164
+ <groupId >org.apache.maven.plugins</groupId >
165
+ <artifactId >maven-surefire-plugin</artifactId >
166
+ <configuration >
167
+ <systemPropertyVariables >
168
+ <quarkus .test.profile>test,prod-basex</quarkus .test.profile>
169
+ <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
170
+ <maven .home>${maven.home} </maven .home>
171
+ </systemPropertyVariables >
172
+ </configuration >
173
+ </plugin >
174
+ </plugins >
175
+ </build >
176
+ </profile >
177
+
178
+ <profile >
179
+ <id >postgres</id >
180
+
181
+ <properties >
182
+ <quarkus .profile>prod,prod-postgres</quarkus .profile>
183
+ </properties >
184
+
185
+ <dependencies >
186
+ <dependency >
187
+ <groupId >org.lfenergy.compas.scl.data</groupId >
188
+ <artifactId >repository-postgresql</artifactId >
189
+ <scope >runtime</scope >
190
+ </dependency >
191
+
192
+ <dependency >
193
+ <groupId >io.quarkus</groupId >
194
+ <artifactId >quarkus-narayana-jta</artifactId >
195
+ </dependency >
196
+ <dependency >
197
+ <groupId >io.quarkus</groupId >
198
+ <artifactId >quarkus-agroal</artifactId >
199
+ </dependency >
200
+ </dependencies >
201
+
202
+ <build >
203
+ <plugins >
204
+ <plugin >
205
+ <groupId >org.apache.maven.plugins</groupId >
206
+ <artifactId >maven-surefire-plugin</artifactId >
207
+ <configuration >
208
+ <systemPropertyVariables >
209
+ <quarkus .test.profile>test,prod-postgres</quarkus .test.profile>
210
+ <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
211
+ <maven .home>${maven.home} </maven .home>
212
+ </systemPropertyVariables >
213
+ </configuration >
214
+ </plugin >
215
+ </plugins >
216
+ </build >
217
+ </profile >
218
+
157
219
<profile >
158
220
<id >native</id >
159
221
0 commit comments