-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create modular runtime image #1
Comments
A problem is that Saxon-HE is not modular, and jlink only operates on modules. The jdeps utility can generate module.info file, but it still needs to be put in the jar. Moditect plugin looks promising, but it is still in beta. I would appreciate help from anyone who has experience with this issue. |
Experimenting with Moditect plugin. One discovery is that Saxon HE requires jlink parameter --ignore-signing-information.
|
Now the build is working outside of Eclipse. When I run it in Eclipse, jlink gives an error about duplicate pom.xml, but apparently Eclipse is doing that. |
I specified a launcher for XmlDiff, and jlink creates a little script for it. Apparently only one launcher can be created so XMLMerge requires a command line. xmldiff script works, but override for XMLMerge is not working.
Why? XMLMerge is public. |
The jlink utility supports multiple entry points, but Moditect plugin doesn't. Issue entered at moditect/moditect#104 |
Works with fork donmendelson/moditect, but making image generation optional for now. |
Another option to consider is it use GraalVM ahead-of-time compiler to build a native executable. |
Workaround for now is to build an assembly with all dependencies. |
Define a module and create a runtime image.
The code requires module java.xml and has dependency Saxon-HE.
The text was updated successfully, but these errors were encountered: