How can one solve this error when building a Maven project that uses protobufs?
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
I use maven-protobuf-plugin version 0.6.1, I am running IntelliJ on Windows.
I have tried to
- add
-Didea.dynamic.classpath=true
to themvn clean install
- command add
"dynamic.classpath": "true"
toPropertiesComponent
inworkspace.xml
of IntelliJ - install a newer version of the protoc compiler
- build from terminal outside Intellij
- updating IntelliJ
but none worked.