Hi if XZ for Java is used as a Java9 module java will derive the name of the module from the jar name and will most likely be "xz". If you add an "Automatic-Module-Name" entry to the jar's manifest you can control the name yourself, without turing XZ into a proper Java9 module.
As XZ uses org.tukaani.xz as its OSGi bundle name, it seems logical to use the same name for a module. The simple change below would achieve that. Stefan diff --git a/build.xml b/build.xml index 52d3764..a2e2b7e 100644 --- a/build.xml +++ b/build.xml @@ -71,6 +71,7 @@ <attribute name="Export-Package" value="org.tukaani.xz"/> <attribute name="Bundle-Name" value="${title}"/> <attribute name="Bundle-DocURL" value="${homepage}"/> + <attribute name="Automatic-Module-Name" value="org.tukaani.xz"/> </manifest> </jar>