|
8 | 8 | <build.revision></build.revision> |
9 | 9 | <bundle.name>${project.groupId}.${project.artifactId}</bundle.name> |
10 | 10 | <maven.build.timestamp.format>'v'yyyyMMdd-HHmm</maven.build.timestamp.format> |
11 | | - <netty.version>4.1.15.Final</netty.version> |
| 11 | + <netty.version>4.1.16.Final</netty.version> |
12 | 12 | </properties> |
13 | 13 |
|
14 | 14 | <parent> |
|
35 | 35 | <dependencies> |
36 | 36 | <dependency> |
37 | 37 | <groupId>io.netty</groupId> |
38 | | - <artifactId>netty-all</artifactId> |
| 38 | + <artifactId>netty-handler</artifactId> |
39 | 39 | <version>${netty.version}</version> |
40 | 40 | </dependency> |
41 | 41 |
|
|
220 | 220 | <plugin> |
221 | 221 | <groupId>org.apache.maven.plugins</groupId> |
222 | 222 | <artifactId>maven-surefire-plugin</artifactId> |
223 | | - <version>2.19.1</version> |
| 223 | + <version>2.20.1</version> |
224 | 224 | </plugin> |
225 | 225 | <plugin> |
226 | 226 | <groupId>org.apache.maven.plugins</groupId> |
227 | 227 | <artifactId>maven-failsafe-plugin</artifactId> |
228 | | - <version>2.19</version> |
| 228 | + <version>2.20.1</version> |
229 | 229 | <configuration> |
| 230 | + <!-- |
| 231 | + Failsafe plugin starting from 2.19 by default runs tests from 'target/test-classes' against a package jar. |
| 232 | + When we shade things into the jar packages are changed, however tests in 'target/test-classes' do not. |
| 233 | + This results in AbstractMethodError and other kind of strange errors. |
| 234 | +
|
| 235 | + Following setting tells failsafe to run tests against 'target/classes' instead. |
| 236 | + See https://issues.apache.org/jira/browse/SUREFIRE-1198 for more details. |
| 237 | + --> |
| 238 | + <classesDirectory>${project.build.directory}/classes</classesDirectory> |
230 | 239 | </configuration> |
231 | 240 | <executions> |
232 | 241 | <execution> |
|
237 | 246 | </execution> |
238 | 247 | </executions> |
239 | 248 | </plugin> |
| 249 | + <plugin> |
| 250 | + <groupId>org.apache.maven.plugins</groupId> |
| 251 | + <artifactId>maven-shade-plugin</artifactId> |
| 252 | + <version>3.1.0</version> |
| 253 | + <executions> |
| 254 | + <execution> |
| 255 | + <phase>package</phase> |
| 256 | + <goals> |
| 257 | + <goal>shade</goal> |
| 258 | + </goals> |
| 259 | + <configuration> |
| 260 | + <artifactSet> |
| 261 | + <includes> |
| 262 | + <include>io.netty:*</include> |
| 263 | + </includes> |
| 264 | + </artifactSet> |
| 265 | + <relocations> |
| 266 | + <relocation> |
| 267 | + <pattern>io.netty</pattern> |
| 268 | + <shadedPattern>org.neo4j.driver.internal.shaded.io.netty</shadedPattern> |
| 269 | + </relocation> |
| 270 | + </relocations> |
| 271 | + <shadeTestJar>true</shadeTestJar> |
| 272 | + </configuration> |
| 273 | + </execution> |
| 274 | + </executions> |
| 275 | + </plugin> |
240 | 276 | </plugins> |
241 | 277 | </build> |
242 | 278 |
|
|
0 commit comments