Netty与JDK 17的拆分包问题。它是非模块化的jar,我正在尝试将它包含在我的模块化项目中。我添加了一个模块-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发布于 2022-07-29 12:43:53
这是因为io.netty jars不是模块。如果你用7-zip之类的东西窥视它们的内部,你就不会看到一个模块信息类文件。然而,“要求”期望这些是模块。
https://stackoverflow.com/questions/72217535
复制相似问题