Recently I'd tried to start a maven-based project with GWT (Google Web Toolkit) for a frontend and I'd faced with MANY troubles along the way.
Main reason, as usual, is the difference in "native" directory structures. For sure, there are bunch of maven + gwt tutorial on the web but all of them are too complicated if you want simply try gwt. And yes, there is a mature plugin gwt-maven-plugin with a descriptive site. But after digging in tutorials I'd lose the main entrance in this topic - the page Using the Archetype. There I'd found an easy (and probably the most right) solution - generate a project archetype with help of the gwt-maven-plugin itself:
So now I'm running gwt-project with a simple command
Main reason, as usual, is the difference in "native" directory structures. For sure, there are bunch of maven + gwt tutorial on the web but all of them are too complicated if you want simply try gwt. And yes, there is a mature plugin gwt-maven-plugin with a descriptive site. But after digging in tutorials I'd lose the main entrance in this topic - the page Using the Archetype. There I'd found an easy (and probably the most right) solution - generate a project archetype with help of the gwt-maven-plugin itself:
mvn archetype:generate \ -DarchetypeRepository=repo1.maven.org \ -DarchetypeGroupId=org.codehaus.mojo \ -DarchetypeArtifactId=gwt-maven-plugin \ -DarchetypeVersion=2.4.0
So now I'm running gwt-project with a simple command
mvn gwt:run
No comments:
Post a Comment