How to use SuperDevMode with Maven

after much read about SuperDevMode gwt 2.5 I wanted to try it myself. I read https://vaadin.com/blog/-/blogs/vaadin-and-superdevmode and some other articles. As far as I understand, I need to run the codeerver class. I checked the gwt-maven-plugin repository, but was not sure if there was gwt2.5 support.

Has anyone been able to get SuperDevMode to work with maven?

Regards, arne

Edit:

Thanks to Thomas, I got a job! Here is an excerpt from my pom.

<resources> <resource> <directory> src/main/java </directory> </resource> </resources> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <mainClass>com.google.gwt.dev.codeserver.CodeServer</mainClass> <arguments> <argument>com.myapp.Application</argument> </arguments> </configuration> </plugin> 

Now I just need to run the target: exec:java to start the code server.

+4
source share
2 answers

Version 2.5.0-rc1 gwt-maven-plugin will support it using the run-codeserver target . This version is currently delivered. Please check it and vote .

In the meantime, you can use it with exec-maven-plugin.

+6
source

This src repo: https://github.com/jbarop/gwt-maven-plugin/tree/gwt-2.5 looks like it supports GWT 2.5, with the last commit message being:

added mojo to start the code server

(disclaimer: I have not tried it myself yet)

0
source

All Articles