Im Apache-HBase-Projekt werden die meisten Pakete über alle Module aufgeteilt. Dadurch ist ein Standard-Split-Paket-Problem, während vorhandener Code migriert. /> Ich habe eine Problemumgehung durchlaufen, aber das ist für wir, wenn wir zwei eingehende Abhängigkeiten haben, die dasselbe Paket enthält. In diesem Fall können wir ein modulares Glas erstellen, das jedoch nicht für HBase nützlich sein kann, da dies zu einem modularen Glas für HBase führt und das das Motiv dieses Projekts widerspricht.
Code: Select all
module org.apache.hadoop.hbase.client {
requires audience.annotations;
requires commons.crypto;
requires org.apache.commons.io;
requires org.apache.commons.lang3;
requires hadoop.common;
requires hbase.common;
requires com.google.gson;
requires com.google.common;
requires hbase.unsafe;
requires java.management;
requires java.security.sasl;
requires jcip.annotations;
requires org.jruby.jcodings;
requires org.jruby.joni;
requires metrics.core;
requires io.opentelemetry.api;
requires io.opentelemetry.context;
requires org.slf4j;
requires zookeeper;
requires hbase.shaded.protobuf;
// requires hbase.protocol.shaded;
// requires hbase.shaded.netty;
// requires zookeeper.jute;
exports org.apache.hadoop.hbase;
}
< /code>
Ich erhalte diesen Fehler beim Kompilieren < /p>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hbase-client: Compilation failure: Compilation failure:
[ERROR] the unnamed module reads package org.apache.hadoop.hbase from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.exceptions from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.filter from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.security from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.util from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.zookeeper from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.zookeeper from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.util from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.security from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.filter from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.exceptions from both org.apache.hadoop.hbase.client and hbase.common
....
....
....