【发布时间】:2023-02-03 19:10:39
【问题描述】:
如何在构建使用 protobufs 的 Maven 项目时解决此错误?
org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on project my-module: An error occurred while invoking protoc: Error while executing process.: Cannot run program "cmd.exe": CreateProcess error=206, The filename or extension is too long
我使用 maven-protobuf-plugin 版本 0.6.1 。
我试过
- 将
-Didea.dynamic.classpath=true添加到mvn clean install - 命令添加
"dynamic.classpath": "true"到 - IntelliJ 的 PropertiesComponent workspace.xml 从 Intellij 外部的终端安装更新版本的协议编译器构建
但没有一个奏效。
【问题讨论】:
标签: maven kotlin protocol-buffers protoc