Hi Yiguang<br><br><div>Would you be able to redo a clean install with </div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 16px; "><extraJvmArgs><span style="font-family: arial; ">-Xmx1024M <span style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; ">-XstartOnFirstThread <span style="font-size: small; ">-Dconnection.string="${db.connection.string}" -Ddb.driver=${db.driver}</extraJvmArgs></span></span></span></span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 16px; "><span style="font-family: arial; "><span style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-size: small; "><br>
</span></span></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 16px; "><span style="font-family: arial; "><span style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-size: small; ">i.e. withouot the -XstartOnFirstThread, but with the extra memory setting. This option doesn't work on Windows, so I'm wondering if all you required was the memory max.</span></span></span></span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 16px; "><span style="font-family: arial; "><span style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-size: small; ">Cheers,</span></span></span></span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 16px; "><span style="font-family: arial; "><span style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span style="font-size: small; ">Chris</span></span></span></span></div>
<div><br><div class="gmail_quote">On 28 April 2010 03:17, Yiguang Hu <span dir="ltr"><<a href="mailto:yighu@yahoo.com">yighu@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>Chris,</div><div><br></div><div>I followed the steps and found the problem is in test and gwt:compile. The following did the trick.</div>
<div class="im"><div><span style="font-family:Verdana, Helvetica, Arial, sans-serif"><extraJvmArgs><span style="font-family:arial">-Xmx1024M <span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px">-XstartOnFirstThread <span style="font-size:small">-Dconnection.string="${db.connection.string}" -Ddb.driver=${db.driver}</extraJvmArgs></span></span></span></span></div>
<div><span style="font-family:Verdana, Helvetica, Arial, sans-serif"><span style="font-family:arial"><span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px"><span style="font-size:small"><br></span></span></span></span></div>
</div><div><span style="font-family:Verdana, Helvetica, Arial, sans-serif"><span style="font-family:arial"><span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px"><span style="font-size:small">So Step is build in my local now.</span></span></span></span></div>
<div><span style="font-family:Verdana, Helvetica, Arial, sans-serif"><span style="font-family:arial"><span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px"><span style="font-size:small">thanks</span></span></span></span></div>
<div><span style="font-family:Verdana, Helvetica, Arial, sans-serif"><span style="font-family:arial"><span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px"><span style="font-size:small">Yiguang</span></span></span></span></div>
<div style="font-family:times new roman, new york, times, serif;font-size:12pt"> <br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><div class="im"><hr size="1">
<b><span style="font-weight:bold">From:</span></b> Chris Burrell <<a href="mailto:chris@burrell.me.uk" target="_blank">chris@burrell.me.uk</a>><br></div><b><span style="font-weight:bold">To:</span></b> Yiguang Hu <<a href="mailto:yighu@yahoo.com" target="_blank">yighu@yahoo.com</a>><br>
<b><span style="font-weight:bold">Cc:</span></b> SWORD Developers' Collaboration Forum <<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>>; <a href="mailto:wes@werxltd.com" target="_blank">wes@werxltd.com</a>; Brian Jolly
<<a href="mailto:brian@brianjolly.com" target="_blank">brian@brianjolly.com</a>><br><b><span style="font-weight:bold">Sent:</span></b> Tue, April 27, 2010 6:14:50 PM<div class="im"><br><b><span style="font-weight:bold">Subject:</span></b> Re: [sword-devel] sword-devel Digest, Vol 73, Issue 45<br>
</div></font><div><div></div><div class="h5"><br>
<div>Hi Yiguang</div><div><br></div><div>A maven command looks like this:</div><div><br></div><div>mvn phase1 phase2 phase3 or mvn plugin:goal</div><div><br></div><div>During a build phase, maven invokes a number of plugins. For example, during the compile phase, the java compiler plugin is invoked, the gwt compiler is invoked, etc. So, when you're invoking mvn clean install, it is the same as mvn clean, followed by mvn install</div>
<div><br></div><div>The parent pom.xml defines a number of modules. (<modules> tag) When you invoke mvn clean or mvn install at the top level, all it does is cds into each module in turn, and invokes the same command. The child poms (at the top of the pom) contain the reference to the parent. In a way, the mvn -pl <modulename> clean install command you did earlier last week is the same as cd <modulename> & mvn clean install</div>
<div><br></div><div>clean basically gets rid of all the target folders under each module. When you invoke the build lifecycle (for e.g. install), it does all the phases up-to and including that. </div><div>So mvn install can be broken down as follows</div>
<div><br></div><div>mvn validate</div><div>mvn compile</div><div>mvn test</div><div>mvn package</div><div>mvn integration-test</div><div>mvn verify</div><div>mvn install</div><div><br></div><div>but skips the last stage:</div>
<div>mvn deploy</div><div><br></div><div>If you're getting a warning about serialization, I reckon you're running out of memory during the GWT compiliation, which happens during the compile phase mentioned above.</div>
<div><br></div><div>To prove this, I think you could try the following. First prove you can successfully build step-dataloader:</div><div><br></div><div>1- cd into step-dataloader</div><div>2- mvn clean</div><div>3- mvn install</div>
<div><br></div><div>[if that works, you've got at least 1 of the 4 modules working!]</div><div><br></div><div>4- cd into step-web-app, and run</div><div>5- mvn clean</div><div>6- mvn compiler:compile (invoking the compile goal on the maven java compiler plugin)</div>
<div>7- mvn gwt:compile (invoking the compile goal on the gwt maven plugin)</div><div><br></div><div>The warning (if it's the one I'm thinking of) is fine and due to a library we're using which hasn't been upgraded to GWT 2.0.</div>
<div><br></div><div>I came across this:</div><div><span><a href="http://code.google.com/p/gwt-maven/issues/detail?id=65" target="_blank">http://code.google.com/p/gwt-maven/issues/detail?id=65</a></span></div><div><br></div>
<div>which suggests you should try increasing the memory allocated to the gwt:compile. so in your pom.xml, find the gwt compiler plugin (under <build><plugins>, find the plugin called gwt-maven-plugin and under the <extraJvmArguments> specify some good memory arguments, for e.g. </div>
<div><br></div><div>-Xmx1024M <span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px">-XstartOnFirstThread</span></div>
<div><font face="Verdana, Helvetica, Arial, sans-serif"><span><br></span></font></div>
<div><font face="Verdana, Helvetica, Arial, sans-serif"><span>so your tag would like something like:</span></font></div>
<div><font face="Verdana, Helvetica, Arial, sans-serif"><span><br></span></font></div>
<div><font face="Verdana, Helvetica, Arial, sans-serif"><span><extraJvmArgs><span style="font-family:arial">-Xmx1024M <span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px">-XstartOnFirstThread <span style="font-size:small">-Dconnection.string="${db.connection.string}" -Ddb.driver=${db.driver}</extraJvmArgs></span></span></span></span></font></div>
<div><br></div><div>Hope that helps. It might be that, because I specified the extraJvmArgs attribute, I lost the default of -Xmx512M and thereby the defaults are the OS defaults. Also, apparently the startOnFirstThread is a Mac OS specific argument which apparently fixes JVM issues on Mac OS Leopard</div>
<div><br></div><div>Hope that helps!</div><div>Chris</div><div><br><div class="gmail_quote">On 27 April 2010 22:27, Yiguang Hu <span dir="ltr"><<a rel="nofollow" href="mailto:yighu@yahoo.com" target="_blank">yighu@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Chris,<br>I am on both lists. I have not resolved OOM yet. The OOM happens during mvn clean install (seems it was doing some serialization related things before OOM. And I didn't notice a memory surge during the process). Will look at the pom file to see how to do it by individual modules. (I am new to mvn). It would be great if you can show me how to divide mvn clean install into more steps for building the STEP.<br>
<div>Thanks<br>Yiguang<br><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br></div></div></div></blockquote></div></div>
</div></div></div></div><div></div>
</div><br>
</div></blockquote></div><br></div>