|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 | 2 | <modelVersion>4.0.0</modelVersion> |
4 | 3 |
|
5 | 4 | <groupId>com.ibm.cloud</groupId> |
|
70 | 69 | <maven-checkstyle-plugin-version>3.1.0</maven-checkstyle-plugin-version> |
71 | 70 | <maven-failsafe-plugin-version>3.0.0-M4</maven-failsafe-plugin-version> |
72 | 71 | <maven-buildnumber-plugin-version>1.4</maven-buildnumber-plugin-version> |
73 | | - <powermock-version>2.0.5</powermock-version> |
74 | | - <mockito-version>3.2.4</mockito-version> |
| 72 | + <powermock-version>2.0.9</powermock-version> |
| 73 | + <mockito-version>3.12.4</mockito-version> |
| 74 | + <!-- This property should be empty by default. --> |
| 75 | + <surefireJvmArgs></surefireJvmArgs> |
75 | 76 | </properties> |
76 | 77 |
|
77 | 78 | <dependencies> |
|
357 | 358 | <groupId>org.codehaus.mojo</groupId> |
358 | 359 | <artifactId>buildnumber-maven-plugin</artifactId> |
359 | 360 | </plugin> |
360 | | - |
361 | 361 | <plugin> |
362 | 362 | <groupId>org.apache.maven.plugins</groupId> |
363 | 363 | <artifactId>maven-surefire-plugin</artifactId> |
364 | | - <version>2.22.2</version> |
| 364 | + <version>3.0.0-M5</version> |
| 365 | + <configuration> |
| 366 | + <argLine>${surefireJvmArgs}</argLine> |
| 367 | + </configuration> |
365 | 368 | </plugin> |
366 | | - |
367 | 369 | </plugins> |
368 | 370 | </build> |
369 | 371 |
|
|
389 | 391 | </plugins> |
390 | 392 | </build> |
391 | 393 | </profile> |
| 394 | + <profile> |
| 395 | + <id>java8</id> |
| 396 | + <activation> |
| 397 | + <jdk>1.8</jdk> |
| 398 | + </activation> |
| 399 | + </profile> |
| 400 | + <profile> |
| 401 | + <id>java9plus</id> |
| 402 | + <activation> |
| 403 | + <jdk>[9,)</jdk> |
| 404 | + </activation> |
| 405 | + <properties> |
| 406 | + <!-- For java 9 and higher, we need these jvm args when running tests due to errors caused by other libraries. --> |
| 407 | + <surefireJvmArgs>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.logging/java.util.logging=ALL-UNNAMED</surefireJvmArgs> |
| 408 | + </properties> |
| 409 | + </profile> |
392 | 410 | </profiles> |
393 | 411 |
|
394 | 412 | </project> |
0 commit comments