Replies: 1 comment 2 replies
-
The best way to do this is to use the "option" functionality within the Protobuf API itself. This is able to be passed in via a string within the e.g. <plugin>
...
<configuration>
...
<jvmMavenPlugins>
<jvmMavenPlugin>
...
<options>--debug</options>
</jvmMavenPlugin>
</jvmMavenPlugins>
</configuration>
</plugin> This is consistently supported between binary plugins and JAR-based plugins. I have seen the Salesforce libraries support passing command line arguments directly but this appears to be just for debugging outside of being invoked via protoc directly, so I wouldn't advise you rely on that as I am not aware of a way of consistently passing those through when the plugin is actually used at runtime. Hope that helps! 😄 |
Beta Was this translation helpful? Give feedback.
-
I am using our own proto plugin inside this protobuf maven plugin using the configuration jvmMavenPlugin. Is there any way I can pass args into the main method of my custom plugin?
Beta Was this translation helpful? Give feedback.
All reactions