apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.5k stars 26.43k forks source link

[Bug] package io.grpc.health.v1 does not exist #14842

Open simon28li opened 1 week ago

simon28li commented 1 week ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo Java 3.3.1, OpenJDK 1.8, openEuler22.03

Steps to reproduce this issue

mvn clean package -DskipTests

What you expected to happen

The error is reported as follows,I compiled successfully on machines on other systems such as centos8, but I don't know what caused the difference.

[INFO] --- maven-remote-resources-plugin:3.1.0:process (process-resource-bundles) @ dubbo-rpc-triple ---
[INFO] Preparing remote bundle org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO]
[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ dubbo-rpc-triple ---
[INFO] Copying 19 resources from src/main/resources to target/classes
[INFO] Copying 2 resources from ../.. to target/classes/META-INF
[INFO] Copying 1 resource from ../.. to target/classes/META-INF/dubbo-versions
[INFO] Copying 3 resources from target/maven-shared-archive-resources to target/classes
[INFO]
[INFO] --- flatten-maven-plugin:1.6.0:flatten (flatten) @ dubbo-rpc-triple ---
[INFO] Generating flattened POM of project org.apache.dubbo:dubbo-rpc-triple:jar:3.3.1...
[INFO]
[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ dubbo-rpc-triple ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 219 source files with javac [forked debug target 1.8] to target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
/home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleProtocol.java:[45,44] error: package io.grpc.health.v1.HealthCheckResponse does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/TriBuiltinService.java:[33,24] error: package io.grpc.health.v1 does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/TriBuiltinService.java:[34,24] error: package io.grpc.health.v1 does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/TriBuiltinService.java:[49,12] error: cannot find symbol
  symbol:   class Health
  location: class TriBuiltinService
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[28,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[29,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[30,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[31,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[32,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[33,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[34,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[35,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[36,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[43,73] error: package DubboServerReflectionTriple does not exist

Anything else

No response

Are you willing to submit a pull request to fix on your own?

Code of Conduct

heliang666s commented 1 week ago

Since these codes are generated from proto files, you need to compile them once in Maven before proceeding with packaging.@simon28li

simon28li commented 1 week ago

Since these codes are generated from proto files, you need to compile them once in Maven before proceeding with packaging.@simon28li

Can you tell me the specific steps?

wcy666103 commented 1 week ago

Since these codes are generated from proto files, you need to compile them once in Maven before proceeding with packaging.@simon28li

Can you tell me the specific steps?

try mvn clean complie package -DskipTests

wcy666103 commented 4 days ago

Please close this pr as complete.