Java 11 Module: reads package 'io.protostuff' from both 'protostuff.api' and 'protostuff.core'
See original GitHub issueI am using Java 11 and protostuff, here is the module-info.java:
module nettyrpc.server {
requires nettyrpc.common;
requires io.netty.all;
requires org.apache.logging.log4j;
requires gson;
requires protostuff.runtime;
requires protostuff.api;
requires protostuff.core;
}
Get the error: Module 'nettyrpc.server' reads package 'io.protostuff' from both 'protostuff.api' and 'protostuff.core'
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Error:java: module A reads package B from both C and D on ...
I got the following errors when build project using IntelliJ IDEA 2018 2.5 Community after migrating to Java 11 (I got this error...
Read more >Module reads package from both - java - Stack Overflow
module ChanceTracker.main reads package org.bouncycastle.tsp.cms from both ... from both flying.saucer.pdf and flying.saucer.core.
Read more >protostuff - issue #96 - Google Code
It implements the encoding of FQNCs using numeric ids. This is done for objects of types unknown in advance, but also for all...
Read more >https://portal-data-cn.obs.cn-north-4.myhuaweiclou...
(Apache License, Version 2.0) AWS SDK for Java - Core ... (Apache License, Version 2.0) protostuff :: api (io.protostuff:protostuff-api:1.6.2 ...
Read more >JetBrains/intellij-scala - Gitter
Registry: java.completion.argument.hints.internal=false. Non-Bundled Plugins: com.intellij.plugins.watcher, io.protostuff.protostuff-jetbrains-plugin, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, any news on this? It is as far as I understand a requirement for including protostuff in a module enabled project.
It’s not just
protostuff.api
andprotostuff.core
that share the same package;protostuff-runtime
andprotostuff-runtime-registry
share theio.protostuff.runtime
package. For people using Gradle, you can use https://github.com/jjohannes/extra-java-module-info/issues/1#issuecomment-734366652 as a workaround:I don’t know what side-effects this might cause, though…
Has there been any consideration for migrating to JPMS modules, or at least resolving these package conflicts? Would packages such as
protostuff-core-api-jpms
andprotostuff-runtime-registry-jpms
suffice?