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 13:22:17 +0200
commit3b05ca01f4ec6c11bd13623858ad558dd82ff488 (patch)
treeb7cb577d31b8c96441151e389e82967fa614d709 /jdisc_core_test
parentd244ecaf14c477ce90660e0943691554d928ed8f (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>