【发布时间】:2022-07-29 20:43:53
【问题描述】:
使用 JDK 17 的 Netty 拆分包问题。它是非模块化 jar,我试图将其包含在我的模块化项目中。我添加了一个 module-info.java 然后包含在下面的要求
module mycustommodule {
requires io.netty.buffer;
requires io.netty.transport;
}
error: the unnamed module reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.all reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.dns reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.haproxy reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.http reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.http2 reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.memcache reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.mqtt reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.redis reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.smtp reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.socks reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.stomp reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.xml reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.common reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.handler reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.handler.proxy reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.resolver reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.resolver.dns reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.rxtx reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.sctp reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.udt reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.classes.epoll reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.unix.common reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.classes.kqueue reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.resolver.dns.classes.macos reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.buffer reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
【问题讨论】: