I cannot find a way to tell the scrooge-maven-plugin how to use the --language java.
Here is my pom.xml
<!-- add other Scrooge command line options using thriftOpts -->
I'm having the same issue.
From what I can tell, adding:
will pass the equivalent of --language\ java and adding:
doesn't work because the options are converted to a set and the ordering is not maintained. The error message tells me: language option /path/to/my.thrift not supported, so it appears to be adding the --language option last.
Yes the latter solution worked for me too. So spilting into two lines and keeping at as the last options generates Java.
I had the same problem. This fixed it for me:
(Using -l instead of --language)
But it would be nice to be able to have a language tag, like this:
@chunyan Any chance you would accept a pull request adding a tag?
sounds great! Please go ahead.
Add <language> configuration tag to Maven plugin