https://bz.apache.org/bugzilla/show_bug.cgi?id=65787
Bug ID: 65787
Summary: POI can't be used with jlink because of dependencies
with automatic module names
Product: POI
Version: 5.0.0-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Trying to build JavaFX desktop app as Windows native image (exe) using Gluon
(https://gluonhq.com/native-windows-applications-using-gluon-substrate-javafx-and-graalvm/),
which involves jlink process. It fails when using POI as dependency:
Not sure how severe is this warning:
[WARNING] * Required filename-based automodules detected:
[commons-math3-3.6.1.jar, SparseBitSet-1.2.jar, batik-all-1.13.jar,
xmlgraphics-commons-2.4.jar]. Please don't publish this project to a public
artifact repository!
But this error is fatal:
Error: automatic module cannot be used with jlink: org.slf4j from ...
I've tried exclude this dependency:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.0.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
but the build fails:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.slf4j not found, required by
org.apache.poi.ooxml
[ERROR] Command execution failed.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]