-
Notifications
You must be signed in to change notification settings - Fork 9
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
java 11 module problem with secret-service-1.0.0-RC.3.jar #9
Comments
Thank you @aanno for pointing this out. What is the proper way to solve this issue? Is there some option for the Normally I just code some Scala and did not familiarize myself yet with the Java module system and I am far from knowing maven well. |
Well, I looked into this and I'm confused as well. In my professional life, I switched from maven to gradle with java 11 because of many problems with java 11 module system builds. For me it looks like that the jar plugin is adding zip directory entries for (all recursive) paths where there are class files (I have no idea why In real life, this might not be a problem. There seems to be very few people who care about module system builds. |
Well, adding <plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>org/freedesktop/dbus/**/*</exclude>
</excludes>
</configuration>
</plugin> to plugins is enough to get rid off the problem. (No need for gradle here.) Still no idea this zip directory entry is included in the first place. |
I moved the following file, which caused the problem into the Now there is no
I guess the same applies for @aanno does this look better to you. You might want to checkout my |
Refactor DBus Connection Initialization Fixes cryptomator#6 Co-authored-by: Sebastian Stenzel <overheadhunter@users.noreply.github.com>
There are some unwanted directory entries in the jar:
This is bad when using the java 11 module system because it leads to the 'split jar' problem:
The text was updated successfully, but these errors were encountered: