Arne
Arne

Reputation: 1404

How can I use SuperDevMode with Maven

after reading a lot about SuperDevMode of gwt 2.5 I wanted to try it myself. I read https://vaadin.com/blog/-/blogs/vaadin-and-superdevmode and some other articles. As I understand I have to run the codeserver class. I checked out the gwt-maven-plugin repository but wasn't quite sure if there is already support for gwt2.5.

Has anybody managed to get the SuperDevMode working with maven?

Regards, arne

Edit:

Thanks to Thomas I got it working!! Here is a extract of 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 have to run the goal: exec:java to start the codeserver.

Upvotes: 4

Views: 4145

Answers (2)

Thomas Broyer
Thomas Broyer

Reputation: 64561

Version 2.5.0-rc1 of the gwt-maven-plugin will support it through the run-codeserver goal. That version is currently staged. Please test it and vote.

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

Upvotes: 6

Chris Buckett
Chris Buckett

Reputation: 14398

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 for running the code server

(disclaimer: I've not tried it myself, yet)

Upvotes: 0

Related Questions