Giter Club home page Giter Club logo

Comments (19)

WarWolfen avatar WarWolfen commented on May 18, 2024 2

Thank you a lot! I have it working now (checked in).

from moditect.

swalk243 avatar swalk243 commented on May 18, 2024

The ERROR is resulting from the call from meditect to jdeps :
Error: jaxb-xjc-2.4.0-b180608.0325.jar is a multi-release jar file but --multi-release option is not set

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:
Error: XXX.jar is not a multi-release jar file but --multi-release option is set

What do the experts think?

from moditect.

malikoski avatar malikoski commented on May 18, 2024

Do you have a project to example to send?

from moditect.

swalk243 avatar swalk243 commented on May 18, 2024

TestJAXB.zip

from moditect.

agudian avatar agudian commented on May 18, 2024

This is caused by https://bugs.openjdk.java.net/browse/JDK-8207162, I think... :/

from moditect.

gunnarmorling avatar gunnarmorling commented on May 18, 2024

Yes, that's a known issue with the current JDK 11.0.1. It will be fixed in 11.0.2.

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

Hi everyone!
Unfortunatly, I got this issue with the latest build of OpenJDK 12. It complains about
https://mvnrepository.com/artifact/io.netty/netty-common/4.1.33.Final

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:
https://github.com/ClanWolf/C3-Starmap_Cerberus

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:
https://github.com/ClanWolf/C3-Starmap_Cerberus/blob/master/net.clanwolf.starmap.client/pom.xml
(line 189).

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

this is the actual error:

[INFO] --- moditect-maven-plugin:1.0.0.Beta2:add-module-info (add-module-infos) @ net.clanwolf.starmap.client ---
writing to C:\C3\projects\C3-Starmap_Cerberus\net.clanwolf.starmap.client\target\moditect\io.netty.common\module-info.java
[INFO] Created module descriptor at C:\C3\projects\C3-Starmap_Cerberus\net.clanwolf.starmap.client\target\moditect\generated-sources\io.netty.common\module-info.java
Error: netty-common-4.1.33.Final.jar is a multi-release jar file but --multi-release option is not set

So, not exactly what I described before, sorry, I got confused... but still...

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

this might belong to this:
#70

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

?

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

This is STILL not working.

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

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).

from moditect.

gunnarmorling avatar gunnarmorling commented on May 18, 2024

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

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.

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

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...

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

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:
https://github.com/ClanWolf/C3-Starmap_Cerberus

The pom:
https://github.com/ClanWolf/C3-Starmap_Cerberus/blob/master/io.nadron.client/pom.xml

I believe it all might work if this module builds successfull...

from moditect.

siordache avatar siordache commented on May 18, 2024

@WarWolfen With Java 12 I was able to circumvent the multi-release error by inserting the following snippet in the configuration of the add-module-info goal in io.nadron.client/pom.xml:

<jdepsExtraArgs>
  <arg>--multi-release</arg>
  <arg>9</arg>
</jdepsExtraArgs>

The add-module-info goal succeeds now but the build fails to execute create-runtime-image:

Error: automatic module cannot be used with jlink: org.apache.commons.collections4 from file:///D:/bds/C3-Starmap_Cerberus/net.clanwolf.starmap.client/target/modules/commons-collections4-4.3.jar 

Generating a module-info descriptor for this library should fix the problem. Looking forward to your feedback.

from moditect.

WarWolfen avatar WarWolfen commented on May 18, 2024

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?

from moditect.

siordache avatar siordache commented on May 18, 2024

The jdepsExtraArgs option is mentioned on the ModiTect GitHub page. This option is also available for the generate-module-info goal.

from moditect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.