Comments (19)
Thank you a lot! I have it working now (checked in).
from moditect.
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.
Do you have a project to example to send?
from moditect.
from moditect.
This is caused by https://bugs.openjdk.java.net/browse/JDK-8207162, I think... :/
from moditect.
Yes, that's a known issue with the current JDK 11.0.1. It will be fixed in 11.0.2.
from moditect.
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.
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.
this might belong to this:
#70
from moditect.
?
from moditect.
This is STILL not working.
from moditect.
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.
from moditect.
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.
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.
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.
@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.
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.
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)
- how to pass "--multi-release" to jdeps? HOT 3
- drop scanning transitive dependencies HOT 2
- jdepsExtraArgs gotcha HOT 2
- Support or document how to generate module info for a Maven plugin HOT 4
- Support for new Compression vars HOT 6
- add-module-info no longer allows replacing the existing module-info in a jar HOT 1
- NullPointerException during create-runtime-image HOT 8
- Update Maven deployment strategy HOT 1
- Ability to replace dependencies HOT 1
- `add-module-info` of moditect-maven-plugin fails for multi-module projects, Shade plugin with "xxx-[version].jar is already modular" HOT 4
- Generated JAR file depends on default time zone HOT 10
- [BUILD] Use ${maven.multiModuleProjectDirectory} instead of directory-maven-plugin HOT 2
- Java 22 support HOT 1
- [BUILD] update build to require Java 11+ for building HOT 23
- Contributing CDI SE Example HOT 2
- problem about .\module-info.class and META-INF\services\9 HOT 9
- Update license and maven configuration HOT 1
- NPE in create-runtime-image if jar not created HOT 2
- 1.2.0.Final break builds where 1.1.0 works (Apache Commons IO): `add-module-info failed: Couldn't copy JAR file` HOT 9
- Cannot run verify twice without clean - build complains about split packages HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moditect.