|
30 | 30 | <!-- OSGi and JPMS options -->
|
31 | 31 | <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
|
32 | 32 | <!-- Dependency versions -->
|
33 |
| - <mongodb5.version>5.1.3</mongodb5.version> |
34 |
| - <!-- TODO: Remove in next release after 2.24.0. --> |
35 |
| - <bnd.baseline.fail.on.missing>false</bnd.baseline.fail.on.missing> |
36 |
| - <bnd.baseline.skip>true</bnd.baseline.skip> |
| 33 | + <mongodb.version>5.1.4</mongodb.version> |
| 34 | + <slf4j2.version>2.0.15</slf4j2.version> |
37 | 35 | </properties>
|
38 | 36 | <dependencyManagement>
|
39 | 37 | <dependencies>
|
| 38 | + |
40 | 39 | <dependency>
|
41 | 40 | <groupId>org.mongodb</groupId>
|
42 | 41 | <artifactId>bson</artifactId>
|
43 |
| - <version>${mongodb5.version}</version> |
| 42 | + <version>${mongodb.version}</version> |
44 | 43 | </dependency>
|
| 44 | + |
45 | 45 | <dependency>
|
46 | 46 | <groupId>org.mongodb</groupId>
|
47 | 47 | <artifactId>mongodb-driver-core</artifactId>
|
48 |
| - <version>${mongodb5.version}</version> |
49 |
| - </dependency> |
50 |
| - <dependency> |
51 |
| - <groupId>org.mongodb</groupId> |
52 |
| - <artifactId>mongodb-driver-legacy</artifactId> |
53 |
| - <version>${mongodb5.version}</version> |
| 48 | + <version>${mongodb.version}</version> |
54 | 49 | </dependency>
|
| 50 | + |
55 | 51 | <dependency>
|
56 | 52 | <groupId>org.mongodb</groupId>
|
57 | 53 | <artifactId>mongodb-driver-sync</artifactId>
|
58 |
| - <version>${mongodb5.version}</version> |
| 54 | + <version>${mongodb.version}</version> |
59 | 55 | </dependency>
|
| 56 | + |
60 | 57 | </dependencies>
|
61 | 58 | </dependencyManagement>
|
62 | 59 | <dependencies>
|
| 60 | + |
63 | 61 | <dependency>
|
64 | 62 | <groupId>org.apache.logging.log4j</groupId>
|
65 | 63 | <artifactId>log4j-api</artifactId>
|
66 | 64 | </dependency>
|
| 65 | + |
67 | 66 | <dependency>
|
68 | 67 | <groupId>org.apache.logging.log4j</groupId>
|
69 | 68 | <artifactId>log4j-mongodb4</artifactId>
|
70 | 69 | </dependency>
|
| 70 | + |
71 | 71 | <dependency>
|
72 | 72 | <groupId>org.mongodb</groupId>
|
73 | 73 | <artifactId>bson</artifactId>
|
74 | 74 | </dependency>
|
| 75 | + |
75 | 76 | <dependency>
|
76 | 77 | <groupId>org.mongodb</groupId>
|
77 | 78 | <artifactId>mongodb-driver-core</artifactId>
|
78 | 79 | </dependency>
|
| 80 | + |
79 | 81 | <dependency>
|
80 | 82 | <groupId>org.mongodb</groupId>
|
81 | 83 | <artifactId>mongodb-driver-sync</artifactId>
|
82 | 84 | </dependency>
|
| 85 | + |
83 | 86 | <dependency>
|
84 | 87 | <groupId>org.apache.logging.log4j</groupId>
|
85 | 88 | <artifactId>log4j-api-test</artifactId>
|
|
91 | 94 | </exclusion>
|
92 | 95 | </exclusions>
|
93 | 96 | </dependency>
|
| 97 | + |
94 | 98 | <dependency>
|
95 | 99 | <groupId>org.apache.logging.log4j</groupId>
|
96 | 100 | <artifactId>log4j-core-test</artifactId>
|
|
102 | 106 | </exclusion>
|
103 | 107 | </exclusions>
|
104 | 108 | </dependency>
|
| 109 | + |
105 | 110 | <dependency>
|
106 | 111 | <groupId>org.apache.commons</groupId>
|
107 | 112 | <artifactId>commons-lang3</artifactId>
|
108 | 113 | <scope>test</scope>
|
109 | 114 | </dependency>
|
110 |
| - <dependency> |
111 |
| - <groupId>de.flapdoodle.embed</groupId> |
112 |
| - <artifactId>de.flapdoodle.embed.mongo</artifactId> |
113 |
| - <scope>test</scope> |
114 |
| - </dependency> |
115 |
| - <dependency> |
116 |
| - <groupId>de.flapdoodle.embed</groupId> |
117 |
| - <artifactId>de.flapdoodle.embed.process</artifactId> |
118 |
| - <scope>test</scope> |
119 |
| - </dependency> |
120 |
| - <dependency> |
121 |
| - <groupId>de.flapdoodle.reverse</groupId> |
122 |
| - <artifactId>de.flapdoodle.reverse</artifactId> |
123 |
| - <scope>test</scope> |
124 |
| - </dependency> |
| 115 | + |
125 | 116 | <dependency>
|
126 | 117 | <groupId>org.junit.jupiter</groupId>
|
127 | 118 | <artifactId>junit-jupiter-api</artifactId>
|
128 | 119 | <scope>test</scope>
|
129 | 120 | </dependency>
|
| 121 | + |
130 | 122 | </dependencies>
|
131 | 123 | <build>
|
132 | 124 | <plugins>
|
133 | 125 | <plugin>
|
134 | 126 | <groupId>org.apache.maven.plugins</groupId>
|
135 | 127 | <artifactId>maven-surefire-plugin</artifactId>
|
136 | 128 | <configuration>
|
137 |
| - <!-- TODO: fix concurrent download of MongoDB distribution. --> |
138 |
| - <forkCount>1</forkCount> |
| 129 | + <skip>true</skip> |
139 | 130 | </configuration>
|
140 | 131 | <dependencies>
|
141 | 132 | <dependency>
|
|
145 | 136 | </dependency>
|
146 | 137 | </dependencies>
|
147 | 138 | </plugin>
|
| 139 | + |
148 | 140 | </plugins>
|
149 | 141 | </build>
|
| 142 | + |
| 143 | + <profiles> |
| 144 | + <profile> |
| 145 | + |
| 146 | + <id>docker</id> |
| 147 | + |
| 148 | + <!-- |
| 149 | + ~ Only the `ubuntu` CI runners have access to Docker |
| 150 | + --> |
| 151 | + <activation> |
| 152 | + <os> |
| 153 | + <family>linux</family> |
| 154 | + </os> |
| 155 | + <property> |
| 156 | + <name>env.CI</name> |
| 157 | + <value>true</value> |
| 158 | + </property> |
| 159 | + </activation> |
| 160 | + |
| 161 | + <build> |
| 162 | + <plugins> |
| 163 | + |
| 164 | + <plugin> |
| 165 | + <groupId>io.fabric8</groupId> |
| 166 | + <artifactId>docker-maven-plugin</artifactId> |
| 167 | + <configuration> |
| 168 | + <verbose>all</verbose> |
| 169 | + <startParallel>true</startParallel> |
| 170 | + <autoCreateCustomNetworks>true</autoCreateCustomNetworks> |
| 171 | + <images> |
| 172 | + <image> |
| 173 | + <alias>mongo</alias> |
| 174 | + <name>mongo:latest</name> |
| 175 | + <run> |
| 176 | + <ports> |
| 177 | + <!-- |
| 178 | + ~ Binds an ephemeral port on the host to port 27017 in the container. |
| 179 | + ~ Assigns the value of the port to the `mongo.port` property. |
| 180 | + --> |
| 181 | + <port>localhost:mongo.port:27017</port> |
| 182 | + </ports> |
| 183 | + </run> |
| 184 | + </image> |
| 185 | + </images> |
| 186 | + </configuration> |
| 187 | + <executions> |
| 188 | + <execution> |
| 189 | + <id>start-mongo</id> |
| 190 | + <goals> |
| 191 | + <goal>start</goal> |
| 192 | + </goals> |
| 193 | + </execution> |
| 194 | + <execution> |
| 195 | + <id>stop-mongo</id> |
| 196 | + <goals> |
| 197 | + <goal>stop</goal> |
| 198 | + </goals> |
| 199 | + </execution> |
| 200 | + </executions> |
| 201 | + </plugin> |
| 202 | + |
| 203 | + <plugin> |
| 204 | + <groupId>org.apache.maven.plugins</groupId> |
| 205 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 206 | + <dependencies> |
| 207 | + <dependency> |
| 208 | + <groupId>org.junit.jupiter</groupId> |
| 209 | + <artifactId>junit-jupiter-engine</artifactId> |
| 210 | + <version>${junit-jupiter.version}</version> |
| 211 | + </dependency> |
| 212 | + <dependency> |
| 213 | + <groupId>org.slf4j</groupId> |
| 214 | + <artifactId>slf4j-nop</artifactId> |
| 215 | + <version>${slf4j2.version}</version> |
| 216 | + </dependency> |
| 217 | + </dependencies> |
| 218 | + <executions> |
| 219 | + <execution> |
| 220 | + <goals> |
| 221 | + <goal>integration-test</goal> |
| 222 | + <goal>verify</goal> |
| 223 | + </goals> |
| 224 | + <configuration> |
| 225 | + <reuseForks>true</reuseForks> |
| 226 | + <includes> |
| 227 | + <include>**/*IT.java</include> |
| 228 | + </includes> |
| 229 | + <systemPropertyVariables> |
| 230 | + <!-- |
| 231 | + ~ Silence the tests. |
| 232 | + ~ Annotate tests with `@UsingStatusListener` to see debug output on error |
| 233 | + --> |
| 234 | + <log4j.statusLogger.level>OFF</log4j.statusLogger.level> |
| 235 | + <!-- The `mongo.port` variable is created by `docker-maven-plugin` --> |
| 236 | + <log4j.mongo.port>${mongo.port}</log4j.mongo.port> |
| 237 | + </systemPropertyVariables> |
| 238 | + </configuration> |
| 239 | + </execution> |
| 240 | + </executions> |
| 241 | + </plugin> |
| 242 | + |
| 243 | + </plugins> |
| 244 | + </build> |
| 245 | + |
| 246 | + </profile> |
| 247 | + </profiles> |
| 248 | + |
150 | 249 | </project>
|
0 commit comments