Too many .proto lead to "CreateProcess error=206, The filename or extension is too long" on Windows #5
I'm working on a project with 306 proto files. That makes the command line longer than windows allows:
I do of course know that this is a Windows restriction but perhaps you can think of a workaround.
The text was updated successfully, but these errors were encountered:
This has been a constant source of pain and frustration on Windows, and there's no universal workaround at the moment. However, I suspect that passing 306 source proto files on the command line may bust the limits of even more robust operating systems.
You can try voting for protocolbuffers/protobuf#274 -- if they implement it in the same way that
I had some ideas of how I could attack it from the maven plugin's perspective, but nothing's planned for the nearest future. I think I'll try to sort it out together with configuration rewrite, because the current implementation does not leave much room for manoeuvre.
If you can split your protos into several smaller groups, then you'll be able to divide and conquer the compilation. You can either split them into several (possibly interdependent) maven modules, or you can split your plugin execution into a number of smaller executions, each compiling a subset of sources (controlled by the include/exclude parameters on each execution).
is it planned to deploy the new version (0.6.0) to the maven repository (https://mvnrepository.com/artifact/org.xolstice.maven.plugins/protobuf-maven-plugin)?
Why hasn't it been deployed yet? Is there any known issue? It would help us a lot if the version 0.6.0 was available on the maven repository.
Thanks a lot.