tofile="${project.build.directory}/classes/etc/users.properties"/>
<fixcrlf srcdir="${project.build.directory}/classes/bin"
includes="*.bat" eol="crlf"/>
+ <!-- KARAF-7431: Fix JDK9+ exported packages -->
+ <patch patchfile="${project.basedir}/src/main/patches/karaf-jre-properties.patch"
+ originalfile="${project.build.directory}/assembly/etc/jre.properties"
+ failonerror="true"/>
+ <copy file="${project.build.directory}/assembly/etc/jre.properties"
+ tofile="${project.build.directory}/classes/etc/jre.properties"/>
</target>
</configuration>
</execution>
--- /dev/null
+diff --git a/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties b/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
+index 11be98a445..21fab6e869 100644
+--- a/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
++++ b/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
+@@ -643,6 +643,8 @@ jre-1.8= \
+
+ jre-9= \
+ ${jre-base}, \
++ java.lang.module, \
++ java.net.spi, \
+ javax.accessibility, \
+ javax.activity, \
+ javax.annotation;version="1.3", \
+@@ -730,6 +732,7 @@ jre-9= \
+ javax.xml.bind.attachment;version="2.3.0", \
+ javax.xml.bind.helpers;version="2.3.0", \
+ javax.xml.bind.util;version="2.3.0", \
++ javax.xml.catalog, \
+ javax.xml.crypto, \
+ javax.xml.crypto.dom, \
+ javax.xml.crypto.dsig, \
+@@ -806,10 +809,15 @@ jre-9= \
+ com.sun.security.sasl.util
+
+ jre-10 = ${jre-9}
+-jre-11 = ${jre-10}
+-jre-13 = ${jre-11}
+-jre-14 = ${jre-13}
++jre-11 = ${jre-10}, \
++ java.net.http
++jre-12 = ${jre-11}, \
++ java.lang.constant
++jre-13 = ${jre-12}
++jre-14 = ${jre-13}, \
++ java.lang.runtime
+ jre-15 = ${jre-14}
+ jre-16 = ${jre-15}
+-jre-17 = ${jre-16}
++jre-17 = ${jre-16}, \
++ java.util.random
+ jre-18 = ${jre-17}
+