I am working on a project using GWT and Maven that I am including internationalization in. It seems to me that it takes longer to build and run the i18n generated files than it does to add new strings into my Constants interface manually.
My question is: Is it required that I include the i18n goal in the POM? Or is it just a tool intended to make it easier to create a Constants interface from a pre-existing properties file? I am new to Maven and believe the goal is just a tool, but am unable to confirm based on my research that it is not needed. Thanks for any help you can give.
I am working on a project using GWT and Maven that I am including
Share
Nope, not required – as you say, it is just there to make it easier. The same is true of the
gwt:generateAsyncgoal, which builds the Async RPC interfaces for you, based on theRemoteServicesubtypes you’ve already defined.I don’t use either one – I prefer to build my own, and document where needed (or not). My poms include just a
gwt:testfor any unit tests I’ve devised, and agwt:compileto actually compile to JavaScript.Keep in mind that a significant percentage of GWT developers do not use Maven, and Constants/Messages and RPC still works just fine for them without these goals.