|
32 | 32 | <groupId>org.eclipse.hono</groupId>
|
33 | 33 | <artifactId>hono-service-device-registry-base</artifactId>
|
34 | 34 | </dependency>
|
35 |
| - <dependency> |
36 |
| - <groupId>org.eclipse.hono</groupId> |
37 |
| - <artifactId>hono-service-device-registry-base</artifactId> |
38 |
| - <version>${project.version}</version> |
39 |
| - <classifier>tests</classifier> |
40 |
| - <type>test-jar</type> |
41 |
| - <scope>test</scope> |
42 |
| - </dependency> |
43 | 35 | <dependency>
|
44 | 36 | <groupId>io.vertx</groupId>
|
45 | 37 | <artifactId>vertx-mongo-client</artifactId>
|
|
49 | 41 | <artifactId>vertx-auth-mongo</artifactId>
|
50 | 42 | </dependency>
|
51 | 43 | <dependency>
|
52 |
| - <groupId>de.flapdoodle.embed</groupId> |
53 |
| - <artifactId>de.flapdoodle.embed.mongo</artifactId> |
| 44 | + <groupId>org.eclipse.hono</groupId> |
| 45 | + <artifactId>hono-service-device-registry-base</artifactId> |
| 46 | + <version>${project.version}</version> |
| 47 | + <classifier>tests</classifier> |
| 48 | + <type>test-jar</type> |
| 49 | + <scope>test</scope> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.testcontainers</groupId> |
| 53 | + <artifactId>mongodb</artifactId> |
| 54 | + <version>${testcontainers.version}</version> |
54 | 55 | <scope>test</scope>
|
55 | 56 | </dependency>
|
56 | 57 | </dependencies>
|
57 | 58 |
|
58 | 59 | <build>
|
59 | 60 | <plugins>
|
60 |
| - <plugin> |
61 |
| - <groupId>com.github.joelittlejohn.embedmongo</groupId> |
62 |
| - <artifactId>embedmongo-maven-plugin</artifactId> |
63 |
| - <version>0.4.2</version> |
64 |
| - <executions> |
65 |
| - <execution> |
66 |
| - <id>start-mongodb</id> |
67 |
| - <phase>pre-integration-test</phase> |
68 |
| - <goals> |
69 |
| - <goal>start</goal> |
70 |
| - </goals> |
71 |
| - <configuration> |
72 |
| - <randomPort>true</randomPort> |
73 |
| - <!-- optional, default is false, if true allocates a random port and overrides embedmongo.port --> |
74 |
| - |
75 |
| - <version>${mongodb.version}</version> |
76 |
| - <!-- optional, default 2.2.1 --> |
77 |
| - |
78 |
| - <features>ONLY_WITH_SSL, ONLY_WINDOWS_2008_SERVER, NO_HTTP_INTERFACE_ARG</features> |
79 |
| - <!-- optional, default is none. Enables flapdoodle.embed.mongo features, for example to build Windows |
80 |
| - download URLs since 3.6 --> |
81 |
| - |
82 |
| - <!-- databaseDirectory>/tmp/mongotest</databaseDirectory --> |
83 |
| - <!-- optional, default is a new dir in java.io.tmpdir --> |
84 |
| - |
85 |
| - <logging>none</logging> |
86 |
| - <!-- optional (file|console|none), default console --> |
87 |
| - |
88 |
| - <logFile>${project.build.directory}/myfile.log</logFile> |
89 |
| - <!-- optional, can be used when logging=file, default is ./embedmongo.log --> |
90 |
| - |
91 |
| - <logFileEncoding>utf-8</logFileEncoding> |
92 |
| - <!-- optional, can be used when logging=file, default is utf-8 --> |
93 |
| - |
94 |
| - <bindIp>127.0.0.1</bindIp> |
95 |
| - <!-- optional, default is to listen on all interfaces --> |
96 |
| - |
97 |
| - <!-- downloadPath>http://internal-mongo-repo/</downloadPath --> |
98 |
| - <!-- optional, default is http://fastdl.mongodb.org/ --> |
99 |
| - |
100 |
| - <unixSocketPrefix>${user.home}/.embedmongo</unixSocketPrefix> |
101 |
| - <!-- optional, default is /tmp --> |
102 |
| - |
103 |
| - <storageEngine>wiredTiger</storageEngine> |
104 |
| - <!--optional, one of wiredTiger or mmapv1 (default is mmapv1) --> |
105 |
| - |
106 |
| - <skip>false</skip> |
107 |
| - <!-- optional, skips this plugin entirely, use on the command line like -Dembedmongo.skip --> |
108 |
| - |
109 |
| - </configuration> |
110 |
| - </execution> |
111 |
| - <execution> |
112 |
| - <id>stop-mongodb</id> |
113 |
| - <phase>post-integration-test</phase> |
114 |
| - <goals> |
115 |
| - <goal>stop</goal> |
116 |
| - </goals> |
117 |
| - </execution> |
118 |
| - </executions> |
119 |
| - </plugin> |
120 | 61 | <plugin>
|
121 | 62 | <groupId>org.apache.maven.plugins</groupId>
|
122 | 63 | <artifactId>maven-surefire-plugin</artifactId>
|
123 | 64 | <configuration>
|
124 |
| - <skip>true</skip> |
125 |
| - </configuration> |
126 |
| - </plugin> |
127 |
| - <plugin> |
128 |
| - <groupId>org.apache.maven.plugins</groupId> |
129 |
| - <artifactId>maven-failsafe-plugin</artifactId> |
130 |
| - <configuration> |
131 |
| - <includes> |
132 |
| - <include>**/*Test.java</include> |
133 |
| - </includes> |
134 |
| - <systemPropertyVariables> |
135 |
| - <mongodb.port>${embedmongo.port}</mongodb.port> |
136 |
| - <vertx.logger-delegate-factory-class-name>io.vertx.core.logging.SLF4JLogDelegateFactory</vertx.logger-delegate-factory-class-name> |
137 |
| - <!-- javax.net.debug>ssl:handshake</javax.net.debug --> |
138 |
| - </systemPropertyVariables> |
| 65 | + <systemProperties> |
| 66 | + <mongoDbImageName>${mongodb-image.name}</mongoDbImageName> |
| 67 | + </systemProperties> |
139 | 68 | </configuration>
|
140 |
| - <executions> |
141 |
| - <execution> |
142 |
| - <id>run-tests</id> |
143 |
| - <phase>integration-test</phase> |
144 |
| - <goals> |
145 |
| - <goal>integration-test</goal> |
146 |
| - <goal>verify</goal> |
147 |
| - </goals> |
148 |
| - </execution> |
149 |
| - </executions> |
150 | 69 | </plugin>
|
151 | 70 | </plugins>
|
152 | 71 | </build>
|
|
203 | 122 | </build>
|
204 | 123 | </profile>
|
205 | 124 |
|
206 |
| - <profile> |
207 |
| - <id>jaeger</id> |
208 |
| - <dependencies> |
209 |
| - <dependency> |
210 |
| - <groupId>io.jaegertracing</groupId> |
211 |
| - <artifactId>jaeger-client</artifactId> |
212 |
| - </dependency> |
213 |
| - </dependencies> |
214 |
| - </profile> |
215 | 125 | <profile>
|
216 | 126 | <id>docker-push-image</id>
|
217 | 127 | <build>
|
|
232 | 142 | </plugins>
|
233 | 143 | </build>
|
234 | 144 | </profile>
|
| 145 | + |
| 146 | + <profile> |
| 147 | + <id>jaeger</id> |
| 148 | + <dependencies> |
| 149 | + <dependency> |
| 150 | + <groupId>io.jaegertracing</groupId> |
| 151 | + <artifactId>jaeger-client</artifactId> |
| 152 | + </dependency> |
| 153 | + </dependencies> |
| 154 | + </profile> |
| 155 | + |
235 | 156 | </profiles>
|
236 | 157 |
|
237 | 158 | </project>
|
0 commit comments