tbroyer / gwt-maven-plugin

Starting fresh on building GWT projects with Maven
https://tbroyer.github.io/gwt-maven-plugin/
Apache License 2.0
167 stars 39 forks source link

How to generate rpc and i18nMessage classes using your plugin? #119

Closed kissenlall closed 5 years ago

ibaca commented 5 years ago

Just use the old plugin to generate I18nMessage, there isn't any downside with this approach. To generate RPC async interfaces you can use the old plugin or https://github.com/intendia-oss/autorpc-gwt, this second option uses APT to generate async interfaces.

tbroyer commented 5 years ago

Or you can use the exec-maven-plugin

Those tools are good for one-shot use, to initialize code, but they're not flexible enough for automated use (IMO): you can't decide whether your RPC async interface methods should return a Request or even RequestBuilder; you cannot tell which type your I18N constants should be, or the type of your I18N message arguments, or whether your messages should be String or SafeHtml.

Generating RPC synchronous interfaces from asynchronous ones would be better (but then how about the @RemoteServiceRelativePath or @RpcTokenImplementation annotations?), and similarly properties files should be generated from interfaces rather than the other way around.

See also #18

donatelloOo commented 3 years ago

That should be clearly stated in the documentation ! This is a very common usage.