GAE and GWT - using Maven instead of Google plugin for Eclipse

I am using Google Plugin for Eclipse, Google App engine and GWT to develop my applications and I am thinking about converting projects (which were created as web application projects) to Maven.

My first question is, where can I find a good tutorial? Most of the links I found were from http://mojo.codehaus.org/gwt-maven-plugin/user-guide/appengine-launcher.html which is now complete as I see it.

My second question is, what are the advantages / disadvantages of using Maven instead of the Google plugin for Eclipse; or in what context is one better than the other?

Thank.

+3


source to share


1 answer


For your first question: I found a tutorial here . Here's more .

As an example, my plugin config looks like this:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <version>${gwtVersion}</version>
    <executions>
        <execution>
            <configuration>
                <module>org.my.tool.GwtModule</module>
            </configuration>
            <goals>
                <goal>generateAsync</goal>
                <goal>compile</goal>
                <!-- <goal>test</goal> -->
                <goal>i18n</goal>
            </goals>
        </execution>
    </executions>
    <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
                documentation at codehaus.org -->
    <configuration>
        <runTarget>raptool_gwt.html</runTarget>
        <hostedWebapp>${webappDirectory}</hostedWebapp>
        <i18nMessagesBundle>org.my.tool.client.TextConstants</i18nMessagesBundle>
        <!-- <appEngineVersion>${gaeVersion}</appEngineVersion> -->
        <server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
    </configuration>
</plugin>

      



Regarding your second question: I am using both google plugin and maven. Maven is used for dependency management, generateAsync, i18n, and random cleanup / installation. Google plugin is used for Dev mode, compilation and deployment of GWT on App Engine. Just make sure the Maven dependencies are at the bottom of the build path (i.e. below the AppEngines from the Google Eclipse plugin).

I'm also curious where the codehaus.org info went, Maven Central has the latest plugin updates, so someone has to be working on it.

+1


source







All Articles