例如,在Windows 64位系统上,这个依赖项可能会被解析为com.google.protobuf:protoc:exe:windows-x86_64:3.5.1-1,Maven将会下载并包含适用于Windows 64位系统的protobuf编译器可执行文件。
plugins { id'java'id'scala'//Allows gradle to automagically generate Java protobuf writers/readers -- needed for TensorFlow//example formatid"com.google.protobuf"version"0.8.8"} protobuf {//Configure the protoc executableprotoc {//Download from repositoriesartifact='com.google.protobuf:protoc:3....
在使用GRPC插件protobuf的时候,complie编译时出现以下错误: Could not find artifactcom.google.protobuf:protoc:exe:${os.detected.classifier}:3.12.0 in central (https://repo.maven.apache.org/maven2) 解决方案 1在pom文件的build标签添加,少了这个排除就会出现这样的错误 <extensions><extension><groupId>kr...