@@ -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,87 @@ 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
+ <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
+
157
223
<profile >
158
224
<id >native</id >
159
225
0 commit comments