summaryrefslogtreecommitdiffstats
path: root/jdisc_core_test
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-06-21 12:16:05 +0200
committergjoranv <gv@oath.com>2018-06-25 21:00:35 +0200
commitfec4bf54b2a74d2ddb563271ebaca3806a9cce47 (patch)
tree206827cb8dfef131797b9f6bf69eb1de01a0ccc0 /jdisc_core_test
parent3df7b29e022ca5a97012745d0ca7143b79ece5b2 (diff)
Java 9: Support fragment bundles in integration tests.
.. by opening package java.base/jdk.internal.loader (See felix:ExtensionManager.addExtensionBundle)
Diffstat (limited to 'jdisc_core_test')
-rw-r--r--jdisc_core_test/integration_test/pom.xml28
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>