Saturday, October 1, 2016

Pointing a Maven GWT project to another project using GWT Maven plugin

Hi,

I have a GWT project with several modules ( Client, Server, Shared,..), and I have a special requirement where the Super Dev mode needs to run on App engine dev server. After compiling the client side, I am using an Ant script that copies GWT client compilation files into the server "war" directory, and I am using the following configuration from the server module: 

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.7.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>index.html</runTarget>
<modules>
<module>module1</module>
<module>module2</module>
</modules>
<codeServerPort>9997</codeServerPort>
<executedProject>
  <basedir>../${basedir}/the-project-with-the-client-side-classes/</basedir>
 <artifactId>client-artifact-id</artifactId>
   <version>1.0</version>
</executedProject>
<server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
<warSourceDirectory>${project.build.directory}/${project.build.finalName}</warSourceDirectory>
</configuration>
</plugin>

I have tried the <executedProject> option, but I am not sure if I am using it properly because It throws a null pointer exception. 

Any help would be appreciated. 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment