GWT - Updating changes in development mode using Maven

If I use GWT Development Mode with Eclipse, the changes that I make in the IDE are immediately reflected in my browser after the update. However, I cannot get the same result when using the maven plugin for assembly. Is it possible?

Here is what I tried:

  • Launch gwt: launch, make changes and save in Eclipse, update the browser.
  • Same as above, but clicked the “restart server” button in the GWT development mode console.
  • Tell Eclipse that my project is a GWT project and is setting up a web application, but it cannot list any entry point modules for me to choose from.
  • 'webAppCreator -templates maven com.xx.WebApp' - creates only pom, not a project (?).

The only option is stop console, gwt: compile, gwt: run. This cycle takes minutes every time.

Any ideas on how to achieve this, or if possible? Failure to do this is indeed a trial jam for us accepting GWT, since we cannot refuse maven.

TIA, Roy

+5
source share
1 answer

The real answer to this question came from the commentary of Thomas Breuer, but I wanted to talk about all the steps that I took for reference in the future:

With Maven:

  • Create a project using the gwt maven plugin archetype .
  • Move the xxx.gwt.xml file from the resource tree to the java tree, as Thomas recommended.
  • "mvn clean install", , , .
  • , this pom. maven, maven, Eclipse.

Eclipse:

  • Eclipse " Maven"
  • → → gwt " " → " ".
  • → Google → Web Toolkit, " Google Web Toolkit" .
  • .
  • → Google → - , " WAR-" , "src/main/webapp"
  • , " " → "-"

!

+5

All Articles