-
Notifications
You must be signed in to change notification settings - Fork 72
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
MultiRelease Jars #59
Comments
The ERROR is resulting from the call from meditect to jdeps : We have to check each Manifest for the entry: Multi-Release: true and then adding --multi-release 10 to the jdeps commandline call within moditect-plugin. The call to " jdeps --generate-module-info C:\XXX\target\moditect --add-modules ..." has to be done separately for each jar in the dependency tree. When we call " jdeps --multi-release 11 --generate-module-info C:\XXX\target\moditect --add-modules ..." with the full dependency tree at once we get the opposite Error: What do the experts think? |
Do you have a project to example to send? |
This is caused by https://bugs.openjdk.java.net/browse/JDK-8207162, I think... :/ |
Yes, that's a known issue with the current JDK 11.0.1. It will be fixed in 11.0.2. |
Hi everyone! being multi release and stops building there. I have sorted out a large number of dependencies from my project. It has been 10+ years and it was a lot of effort to get where I am now. My goal is to get the client to be linked into a runtime image. Here is the project: The error occurs during the client build, running the install target on the main pom. As you can see in the pom of the client module, I used the jvmVersion parameter (with version 9 / 11 / 12) to no effect: |
this is the actual error: [INFO] --- moditect-maven-plugin:1.0.0.Beta2:add-module-info (add-module-infos) @ net.clanwolf.starmap.client --- So, not exactly what I described before, sorry, I got confused... but still... |
this might belong to this: |
? |
This is STILL not working. |
How am I supposed to solve this? I try to use Netty in a complex project and it simply denies to compile the thing. None of the netty jars is in my control. I have no idea how to make this work. Any help is much appreciated (the project is linked above for reference). |
Hey, can you provide a minimal pom.xml which exposes this issue? I can then
try and take a look. Thanks!
… |
Thank you for the offer, I need to setup a new project to reproduce the error in an isolated context. I will let you know. |
This is driving me completly crazy! I have tried to separate the problem to an isolated environment, but it simply does not compute... Now moditect is complaining during the maven run about artefacts that are not even anywhere in the project! I might just give up on the whole thing after all... Error: jboss-marshalling-2.0.5.Final.jar is a multi-release jar file but --multi-release option is not set jboss-marshalling not anywhere in the module and also not in the dependencies of the module... |
If you like to take a look still, please check out the io.nadron.client pom in the module io.nadron.client in the project here: The pom: I believe it all might work if this module builds successfull... |
@WarWolfen With Java 12 I was able to circumvent the multi-release error by inserting the following snippet in the configuration of the
The
Generating a module-info descriptor for this library should fix the problem. Looking forward to your feedback. |
Wow, thank you! I did not even know about this option. I will try it out tonight! Adding module info to the other jar should work like with the others after all... Will let you know. Where am I supposed to find the very existence of the configuration snippet you suggested? |
The |
Thank you a lot! I have it working now (checked in). |
How can I setup moditect-maven-plugin create-runtime-image to handle multiRelease jars.
I have heard that these dependencies should be Java11 aware.
I am trying a simple jaxb Project to test modularisation with java11.
I get this Error:
Error: jaxb-xjc-2.4.0-b180608.0325.jar is a multi-release jar file but --multi-release option is not set
I am using Apache Netbeans 9.0 rc1.
JDK 10.0.1
Compiler settings:
Moditect Settings:
The text was updated successfully, but these errors were encountered: