That's what I've used:

        <properties>
                <!--
                        this is because the maven gwt plugin apparently has a 
hard-coded
path
                        to /war
                -->
                <war.directory>${basedir}/war</war.directory>
                
<output.directory>${basedir}/war/WEB-INF/classes</output.directory>
        </properties>

and then the plugins:

        <build>
                <outputDirectory>${output.directory}</outputDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>gwt-maven-plugin</artifactId>
                                <version>1.2</version>
                                <configuration>
                                        <gwtVersion>${gwt.version}</gwtVersion>
                                        <runTarget>step/Step.html</runTarget>
                                        <inplace>true</inplace>
                                        
<warSourceDirectory>${war.directory}</warSourceDirectory>
                                        
<webappDirectory>${war.directory}</webappDirectory>
                                        
<extraJvmArgs>-Dconnection.string="${db.connection.string}" -
Ddb.driver=${db.driver}</extraJvmArgs>
                                </configuration>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>compile</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-war-plugin</artifactId>
                                <configuration>
                                        
<warSourceDirectory>${war.directory}</warSourceDirectory>
                                        
<webappDirectory>${war.directory}</webappDirectory>
                                        
<webXml>${war.directory}/WEB-INF/web.xml</webXml>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.mortbay.jetty</groupId>
                                <artifactId>maven-jetty-plugin</artifactId>
                                <version>6.1.22</version>
                                <configuration>
                                        
<webAppSourceDirectory>${war.directory}</webAppSourceDirectory>
                                        <webApp>${project.build.directory}/$
{project.build.finalName}.war</webApp>
                                        <contextPath>/</contextPath>
                                        <systemProperties>
                                                <systemProperty>
                                                        
<name>connection.string</name>
                                                        
<value>jdbc:derby:${db.directory}</value>
                                                </systemProperty>
                                                <systemProperty>
                                                        <name>db.driver</name>
                                                        
<value>org.apache.derby.jdbc.EmbeddedDriver</value>
                                                </systemProperty>
                                        </systemProperties>
                                        
<scanIntervalSeconds>5</scanIntervalSeconds>
                                        <connectors>
                                                <connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                                                        <port>8080</port>
                                                        
<maxIdleTime>60000</maxIdleTime>
                                                </connector>
                                        </connectors>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-clean-plugin</artifactId>
                                <version>2.4</version>
                                <configuration>
                                        <filesets>
                                                <fileset>
                                                        
<directory>war</directory>
                                                        <excludes>
                                                                
<exclude>WEB-INF/web.xml</exclude>
                                                        </excludes>
                                                </fileset>
                                        </filesets>
                                </configuration>
                        </plugin>

Hope that helps
Chris

On Apr 18, 6:55 pm, Steve <[email protected]> wrote:
> I'm getting very frustrated -- reading dozens of messages, faqs,
> whatever I can find on the subject, but I haven't found all the info I
> need in one place and haven't been able to piece it all together ...
> maybe I just missed it, but hopefully someone here can help.
>
> What I'd like to do ...
>
> Create a GWT project, use Maven instead of Ant to build.  Be able to
> debug in DevMode, be able to "mvn package" and manually deploy my war
> to a container.
>
> Using Eclipse (3.5.2), m2eclipse, GPE 1.3.2 -- what do I need to do?
> What is the directory structure I need?  Is there a maven archetype to
> create the directory structure?
>
> I tried the MavenAppRpc project.  I was successful in building it and
> deploying the war to Tomcat.  However, I could never get it to work in
> DevMode.
>
> Is there a 1-2-3 type tutorial available that can get me started?
>
> Thanks
>
> --
> 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 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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.

Reply via email to