extraJvmArgs parameter

344 views
Skip to first unread message

badgerduke

unread,
Aug 14, 2009, 12:34:27 PM8/14/09
to gwt-maven
Hello:

I'm new to Maven and the gwt-maven plugin. I want to set system
properties for the server-side portion of my GWT application. I see
the "extraJvmArgs" parameter but I don't know how to use it. At
first, I tried:

mvn clean com.totsp.gwt:maven-googlewebtoolkit2-plugin:gwt -
Dlog.directory=c:\log -Dlog.level=DEBUG

This didn't work. How would this command look if I were to use the
"extraJvmArgs" parameter?

Thanks

John (Eric) Hamacher

unread,
Aug 14, 2009, 3:01:17 PM8/14/09
to gwt-maven
I found extraJvmArgs in the plugin part of the POM. Thanks!

Robert "kebernet" Cooper

unread,
Aug 14, 2009, 5:00:40 PM8/14/09
to gwt-...@googlegroups.com
You can also use your ~/.m2/settings.xml file for that. Specifically, since the log directory might change on different systems, putting:

<profile>
            <id>gwt-2.0-trunk</id>
            <properties>
                <google.webtoolkit.extrajvmargs>-Dlog.directory=c:\log -Dlog.level=DEBUG</google.webtoolkit.home>
            </properties>

        </profile>

can keep that stuff out of the stable project def.

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