evanxuhe opened a new issue #2747: Build Failure cannot find symbol URL: https://github.com/apache/skywalking/issues/2747 Please answer these questions before submitting your issue. - Why do you submit this issue? - [ ] Bug ### Bug - Which version of SkyWalking, OS and JRE? SkyWalking 6.1.0,Ubuntu 18.04TLS,Java version 1.8.0_211 mvn version:3.6.1 ``` Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00) Maven home: /home/xuhe/soft/apache-maven-3.6.1 Java version: 1.8.0_211, vendor: Oracle Corporation, runtime: /usr/local/soft/jdk1.8.0_211/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.18.0-20-generic", arch: "amd64", family: "unix" ``` - Which company or project? Chehejia - What happen? If possible, provide a way for reproducing the error. e.g. demo application, component version. When I try to build the project as [Build from Apache source code release](https://github.com/apache/skywalking/blob/master/docs/en/guides/How-to-build.md#build-from-apache-source-code-release). After I input `./mvnw clean package -DskipTests` There are lots of **compilation failure caused by cannot find symbol** I seems like that each time the position where problem appears is different ``` [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 38.680 s [INFO] Finished at: 2019-05-24T11:23:54+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project apm-agent-core: Compilation failure: Compilation failure: [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/JVMService.java:[45,59] cannot find symbol [ERROR] symbol: class JVMMetricReportServiceGrpc [ERROR] location: package org.apache.skywalking.apm.network.language.agent.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/JVMService.java:[126,52] package JVMMetricReportServiceGrpc does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/NetworkAddressDictionary.java:[28,53] cannot find symbol [ERROR] symbol: class NetAddressMapping [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/NetworkAddressDictionary.java:[29,53] cannot find symbol [ERROR] symbol: class NetAddresses [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/NetworkAddressDictionary.java:[30,53] cannot find symbol [ERROR] symbol: class RegisterGrpc [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/NetworkAddressDictionary.java:[57,21] package RegisterGrpc does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[29,53] cannot find symbol [ERROR] symbol: class EndpointMapping [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[30,53] cannot find symbol [ERROR] symbol: class EndpointMappingElement [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[31,53] cannot find symbol [ERROR] symbol: class Enpoints [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[32,53] cannot find symbol [ERROR] symbol: class RegisterGrpc [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[74,21] package RegisterGrpc does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TraceSegmentServiceClient.java:[33,59] cannot find symbol [ERROR] symbol: class TraceSegmentReportServiceGrpc [ERROR] location: package org.apache.skywalking.apm.network.language.agent.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TraceSegmentServiceClient.java:[50,51] package TraceSegmentReportServiceGrpc does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[39,53] cannot find symbol [ERROR] symbol: class RegisterGrpc [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[40,53] cannot find symbol [ERROR] symbol: class Service [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[41,53] cannot find symbol [ERROR] symbol: class ServiceInstance [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[42,53] cannot find symbol [ERROR] symbol: class ServiceInstancePingGrpc [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[43,53] cannot find symbol [ERROR] symbol: class ServiceInstancePingPkg [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[44,53] cannot find symbol [ERROR] symbol: class ServiceInstanceRegisterMapping [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[45,53] cannot find symbol [ERROR] symbol: class ServiceInstances [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[46,53] cannot find symbol [ERROR] symbol: class ServiceRegisterMapping [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[47,53] cannot find symbol [ERROR] symbol: class Services [ERROR] location: package org.apache.skywalking.apm.network.register.v2 [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[60,34] package RegisterGrpc does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[61,45] package ServiceInstancePingGrpc does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/jvm/JVMService.java:[154,24] cannot find symbol [ERROR] symbol: variable JVMMetricReportServiceGrpc [ERROR] location: class org.apache.skywalking.apm.agent.core.jvm.JVMService.Sender [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/NetworkAddressDictionary.java:[59,13] cannot find symbol [ERROR] symbol: class NetAddressMapping [ERROR] location: class org.apache.skywalking.apm.agent.core.dictionary.NetworkAddressDictionary [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/NetworkAddressDictionary.java:[60,17] cannot find symbol [ERROR] symbol: variable NetAddresses [ERROR] location: class org.apache.skywalking.apm.agent.core.dictionary.NetworkAddressDictionary [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[76,21] package Enpoints does not exist [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[76,40] cannot find symbol [ERROR] symbol: variable Enpoints [ERROR] location: class org.apache.skywalking.apm.agent.core.dictionary.EndpointNameDictionary [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[78,45] cannot access org.apache.skywalking.apm.network.register.v2.EndpointOrBuilder [ERROR] class file for org.apache.skywalking.apm.network.register.v2.EndpointOrBuilder not found [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[85,13] cannot find symbol [ERROR] symbol: class EndpointMapping [ERROR] location: class org.apache.skywalking.apm.agent.core.dictionary.EndpointNameDictionary [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/dictionary/EndpointNameDictionary.java:[87,22] cannot find symbol [ERROR] symbol: class EndpointMappingElement [ERROR] location: class org.apache.skywalking.apm.agent.core.dictionary.EndpointNameDictionary [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TraceSegmentServiceClient.java:[168,27] cannot find symbol [ERROR] symbol: variable TraceSegmentReportServiceGrpc [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.TraceSegmentServiceClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[68,36] cannot find symbol [ERROR] symbol: variable RegisterGrpc [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[69,39] cannot find symbol [ERROR] symbol: variable ServiceInstancePingGrpc [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[115,25] cannot find symbol [ERROR] symbol: class ServiceRegisterMapping [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[116,63] cannot find symbol [ERROR] symbol: variable Service [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[116,29] cannot find symbol [ERROR] symbol: variable Services [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[130,29] cannot find symbol [ERROR] symbol: class ServiceInstanceRegisterMapping [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[132,37] cannot find symbol [ERROR] symbol: variable ServiceInstance [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[130,125] cannot find symbol [ERROR] symbol: variable ServiceInstances [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] /home/xuhe/apache-skywalking-apm-6.1.0-src/apache-skywalking-apm-6.1.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/ServiceAndEndpointRegisterClient.java:[147,60] cannot find symbol [ERROR] symbol: variable ServiceInstancePingPkg [ERROR] location: class org.apache.skywalking.apm.agent.core.remote.ServiceAndEndpointRegisterClient [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :apm-agent-core ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
