How to setup mvn settings.xml to include GWT 1.6 -localWorkers 4

99 views
Skip to first unread message

lloyd.boucher

unread,
Aug 8, 2009, 12:52:06 PM8/8/09
to gwt-maven
I have tried to searcn the internet on how to configure maven's
settings.xml to include GWT 1.6's localWorkers compiler options. I
could not find any example.

My current settings.xml gwt profile settings follow:

<profile>
<id>gwt</id>
<properties>
<google.webtoolkit.home>D:\Development\Tools\gwt-
windows-1.6.4</google.webtoolkit.home>
<google.webtoolkit.extrajvmargs>-Xmx1024m</
google.webtoolkit.extrajvmargs>
</properties>
</profile>


<activeProfiles>
<activeProfile>gwt</activeProfile>
</activeProfiles>


Thank you for your help.

Robert "kebernet" Cooper

unread,
Aug 8, 2009, 4:43:11 PM8/8/09
to gwt-...@googlegroups.com
That is is. You just need to set the <localWorkers> field in you pom file as well (perhaps with a property from the settings file. This is mine on my current project. I have used this with 1.6.4 and trunk:

<plugin>
                <groupId>com.totsp.gwt</groupId>
                <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
                <version>2.0-SNAPSHOT</version>
                <configuration>
                    <gwtVersion>1.6.4</gwtVersion>
                    <logLevel>INFO</logLevel>
                    <gen>target/gwtgen</gen>
                    <runTarget>/</runTarget>
                    <compileTargets>
                        <param>com.xxx.Main</param>
                        <param>com.xxx.Debug</param>
                    </compileTargets>
                    <extraJvmArgs>-Xmx512m -d32</extraJvmArgs>
                    <port>8080</port>
                    <localWorkers>2</localWorkers>
                    <noServer>true</noServer>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
--
:Robert "kebernet" Cooper
::kebe...@gmail.com
Alice's cleartext
Charlie is the attacker
Bob signs and encrypts
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8
Reply all
Reply to author
Forward
0 new messages