0576coder
V2EX  ›  Java

com.google.protobuf 无解的包冲突= =

  •  
  •   0576coder · Jul 22, 2021 · 2249 views
    This topic created in 1754 days ago, the information mentioned may be changed or developed.

    hbase-client 1.3.1 依赖 com.google.protobuf 的版本是 2.5.0

    正好要在项目里面增加 netty-grpc,为了调用其它部门的 grpc 接口

    但是 netty-grpc 依赖的 com.google.protobuf 最少都是 3.0.0 起的。

    所以没办法在同一个项目里用

    hbase 买的 tx 云的 升级不了大版本。比如说我只能从 1.3.1 升到 1.3.2

    瞬间无解 难受啊

    4 replies    2021-07-23 00:18:16 +08:00
    guyeu
        1
    guyeu  
       Jul 22, 2021
    没有什么是无解的,拆微服务、OSGI 、源码级别依赖都可以解决你的问题
    0576coder
        2
    0576coder  
    OP
       Jul 22, 2021
    @guyeu
    拆了就麻烦 人少 我还是个 java 菜鸡= =
    如果无解的话 只能拆出去
    0576coder
        3
    0576coder  
    OP
       Jul 22, 2021
    github 上看到别人也有一样的问题

    https://github.com/grpc/grpc-java/issues/3035

    我试试 hbase-shaded-client
    0576coder
        4
    0576coder  
    OP
       Jul 23, 2021
    亲测有效 hbase-shaded-client

    回来回复一句
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4098 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    ♥ Do have faith in what you're doing.