*i think* i do something mildly different than
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>gwt-maven-plugin</artifactId>
> <configuration>
> <hostedWebapp>${project.build.directory}/$
> {project.build.finalName}</hostedWebapp>
> </configuration>
> </plugin>
here's my working production maven gwt module:
i have a <properties> tag in the parent pom as well, to handle the openjpa,
gwt-version, etc. stuff and a private repo for things like
so to run [in production] i use
mvn [ clean install ] jetty:run-exploded
from the module directory itself
this supports intellij with gwt debugging just fine, i haven't played with
eclipse.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<!--
POM generated by gwt-maven-plugin archetype
-->
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>sample-parent</artifactId>
<groupId>sample</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>sample</groupId>
<artifactId>kiosk-web</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>sample-legacy</id>
<name>sample-Repo</name>
<url>file://${basedir}/../src/main/repository</url>
<layout>default</layout>
</repository>
</repositories>
<dependencies>
<!-- GWT dependencies (from central repo) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<!--<scope>runtime</scope>-->
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google</groupId>
<artifactId>gwt-incubator</artifactId>
<version>20090204-r1747</version>
<!--<scope>provided</scope>-->
</dependency>
<dependency>
<groupId>sample</groupId>
<artifactId>sample-monitor</artifactId>
<version>${parent.version}</version>
</dependency>
</dependencies>
<build>
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>/Customer.html</runTarget>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.0.1.v20091125</version>
<inherited>true</inherited>
<configuration>
<!--
only use if you need tedium like threadpool configs
<jettyConfig>${basedir}/etc/jetty.xml</jettyConfig>
-->
<stopPort>12731</stopPort>
<connectors>
<connector
implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8088</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
<!--<webAppXml>${basedir}/src/main/webapp/
/WEB-INF/web.xml</webAppXml>-->
<webAppSourceDirectory>${basedir}/target/${project.artifactId}-${version}</webAppSourceDirectory>
<webApp>${basedir}/target/${project.artifactId}-${version}</webApp>
</configuration>
</plugin>
</plugins>
</build>
</project>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.