xolstice / protobuf-maven-plugin

Maven Plugin that executes the Protocol Buffers (protoc) compiler
https://www.xolstice.org/protobuf-maven-plugin/
Other
232 stars 76 forks source link

Support for plugin options in java plugins #80

Open suman-ganta opened 3 years ago

suman-ganta commented 3 years ago

Description <protocPlugin> has args, jvmArgs, but does not have pluginOptions. Plugin options are needed to pass any plugin specific options to the plugin. They are passed to the plugin as part of the CodeGeneratorRequest that goes into the plugin via stdin. These options can be retrieved with CodeGeneratorRequest.getParameter() within the plugin.

This PR adds support for pluginOptions. They are passed to protoc as --<pluginId>_opt=<options>

suman-ganta commented 3 years ago

@sergei-ivanov could you please check this out and provide your comments? Thanks.