gpt4 book ai didi

Mac OS getting error while code generating(Mac OS在代码生成时出错)

转载 作者:bug小助手 更新时间:2023-10-24 19:37:30 25 4
gpt4 key购买 nike



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之前发布的。

优秀答案推荐
更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com