Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit c0b7da2

Browse files
committed
OGM-1591 Fix remote MongoDb profile activation
Now `useExternalMongoDb` will work for regulars tests too. Before was only activating the profile for the integration tests.
1 parent cf8a2e0 commit c0b7da2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mongodb/pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@
160160
<profile>
161161
<id>embedded-mongodb</id>
162162
<activation>
163-
<activeByDefault>true</activeByDefault>
163+
<property>
164+
<name>!useExternalMongoDb</name>
165+
</property>
164166
</activation>
165167
<properties>
166168
<datastoreProvider>mongodb</datastoreProvider>
@@ -213,8 +215,7 @@
213215
<id>external-mongodb</id>
214216
<activation>
215217
<property>
216-
<name>mongodbProvider</name>
217-
<value>external</value>
218+
<name>useExternalMongoDb</name>
218219
</property>
219220
</activation>
220221
<properties>

0 commit comments

Comments
 (0)