gwt-user-2.2.0 jar too large to upload to App Engine

160 views
Skip to first unread message

David Chandler

unread,
Mar 7, 2011, 8:12:03 PM3/7/11
to codehaus-mojo-gwt-...@googlegroups.com
It turns out that gwt-user-2.2.0 is just over the App Engine limit for a single file (10M) so you must enable jar splitting to deploy to GAE. There is no need to deploy gwt-user because it's only used for GWT compilation and dev mode, and the GWT Expenses sample POM correctly indicates <scope>provided</scope> to prevent this. However, the sample POM also says <copyWebapp>true</copyWebapp>, which copies src/main/webapp to target/proj_name in order for GWT dev mode (gwt:run) to work.

Possible fix is to modify <copyWebapp> feature of gwt-maven-plugin to exclude gwt-user-*.jar. Your thoughts?

If you're using a POM with <copyWebapp>true</copyWebapp>, you can include this bit of maven goodness to remove the gwt-user jar before GAE deployment.

<plugin>

<artifactId>maven-clean-plugin</artifactId>

<version>2.3</version>

<executions>

<execution>

<id>default-clean</id>

<phase>clean</phase>

<goals>

<goal>clean</goal>

</goals>

</execution>

<execution>

<id>remove-gwt-user-jar</id>

<phase>post-installation-test</phase>

<goals>

<goal>clean</goal>

</goals>

<configuration>

<excludeDefaultDirectories>true</excludeDefaultDirectories>

<filesets>

<fileset>

<directory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</directory>

<includes>

<include>gwt-user*jar</include>

</includes>

</fileset>

        </filesets>

</configuration>

</execution>

</executions>

</plugin>


--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

Philippe Beaudoin

unread,
Mar 23, 2011, 4:03:05 PM3/23/11
to codehaus-mojo-gwt-...@googlegroups.com, David Chandler
Should <copyWebApp> exclude any <scope>provided</scope> dependencies?

David Chandler

unread,
Mar 23, 2011, 4:06:34 PM3/23/11
to codehaus-mojo-gwt-...@googlegroups.com, Philippe Beaudoin
Yes, I think that makes a lot of sense.


On Wed, Mar 23, 2011 at 4:03 PM, Philippe Beaudoin <philippe...@gmail.com> wrote:
Should <copyWebApp> exclude any <scope>provided</scope> dependencies?



nicolas de loof

unread,
Mar 24, 2011, 8:59:20 AM3/24/11
to codehaus-mojo-gwt-...@googlegroups.com, David Chandler, Philippe Beaudoin
please open a Jira issur for that

2011/3/23 David Chandler <drfib...@google.com>

--
You received this message because you are subscribed to the Google Groups "Codehaus Mojo gwt-maven-plugin Users" group.
To post to this group, send email to codehaus-mojo-gwt-...@googlegroups.com.
To unsubscribe from this group, send email to codehaus-mojo-gwt-maven-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users?hl=en.

Philippe Beaudoin

unread,
Mar 24, 2011, 2:43:22 PM3/24/11
to codehaus-mojo-gwt-...@googlegroups.com, David Chandler, Philippe Beaudoin, nicolas de loof
Reply all
Reply to author
Forward
0 new messages