diff options
author | gjoranv <gv@oath.com> | 2018-06-21 12:16:05 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-06-25 21:00:35 +0200 |
commit | fec4bf54b2a74d2ddb563271ebaca3806a9cce47 (patch) | |
tree | 206827cb8dfef131797b9f6bf69eb1de01a0ccc0 | |
parent | 3df7b29e022ca5a97012745d0ca7143b79ece5b2 (diff) |
Java 9: Support fragment bundles in integration tests.
.. by opening package java.base/jdk.internal.loader
(See felix:ExtensionManager.addExtensionBundle)
-rw-r--r-- | jdisc_core_test/integration_test/pom.xml | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/jdisc_core_test/integration_test/pom.xml b/jdisc_core_test/integration_test/pom.xml index d68d6e2966b..e31fa122232 100644 --- a/jdisc_core_test/integration_test/pom.xml +++ b/jdisc_core_test/integration_test/pom.xml @@ -230,14 +230,34 @@ <scope>test</scope> </dependency> </dependencies> + <profiles> + <profile> + <id>java9-surefire</id> + <activation> + <jdk>[9, )</jdk> + </activation> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <!-- Allow installing fragment bundles, see felix.framework:ExtensionManager.addExtensionBundle --> + <argLine> + --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED + </argLine> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> + </profiles> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> |