I am getting following error while doing maven install on gRPC code generation project.
我在GRPC代码生成项目上进行maven安装时遇到以下错误。
Error:
错误:
Unsupported platform: protoc-3.11.4-osx-aarch_64.exe
不支持的平台:PROTEC-3.11.4-OSX-AARCH_64.exe
Maven plugin config
Maven插件配置
<plugin>
<groupId>com.github.os72</groupId>
<artifactId>protoc-jar-maven-plugin</artifactId>
<version>3.11.4</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<addProtoSources>all</addProtoSources>
<includeMavenTypes>direct</includeMavenTypes>
<includeStdTypes>true</includeStdTypes>
<outputDirectory>src/main/generated</outputDirectory>
<inputDirectories>
<include>src/main/proto</include>
</inputDirectories>
<includeImports>true</includeImports>
<outputTargets>
<outputTarget>
<type>java</type>
<outputDirectory>src/main/generated</outputDirectory>
</outputTarget>
<outputTarget>
<type>grpc-java</type>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.57.2</pluginArtifact>
<outputDirectory>src/main/generated</outputDirectory>
</outputTarget>
</outputTargets>
</configuration>
</execution>
</executions>
</plugin>
更多回答
You need to use a newer version of protobuf. 3.11.4 was released before the M1.
您需要使用更新版本的Protobuf。3.11.4是在M1之前发布的。
优秀答案推荐
我是一名优秀的程序员,十分优秀!