<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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><meta charset="utf-8"><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; ">&lt;extraJvmArgs&gt;<span class="Apple-style-span" style="font-family: arial; ">-Xmx1024M&nbsp;<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; ">-XstartOnFirstThread&nbsp;<span class="Apple-style-span" style="font-size: small; ">-Dconnection.string="${db.connection.string}" -Ddb.driver=${db.driver}&lt;/extraJvmArgs&gt;</span></span></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; "><span class="Apple-style-span"
 style="font-family: arial; "><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span class="Apple-style-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; "><span class="Apple-style-span" style="font-family: arial; "><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span class="Apple-style-span" style="font-size: small; ">So Step is build in my local now.</span></span></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; "><span class="Apple-style-span" style="font-family: arial; "><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span class="Apple-style-span" style="font-size: small;
 ">thanks</span></span></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; "><span class="Apple-style-span" style="font-family: arial; "><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; "><span class="Apple-style-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">&nbsp;<br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Chris Burrell &lt;chris@burrell.me.uk&gt;<br><b><span style="font-weight: bold;">To:</span></b> Yiguang Hu &lt;yighu@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> SWORD Developers' Collaboration Forum &lt;sword-devel@crosswire.org&gt;; wes@werxltd.com; Brian Jolly
 &lt;brian@brianjolly.com&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, April 27, 2010 6:14:50 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [sword-devel] sword-devel Digest, Vol 73, Issue 45<br></font><br>
<div>Hi Yiguang</div><div><br></div><div>A maven command looks like this:</div><div><br></div><div>mvn phase1 phase2 phase3 &nbsp;or&nbsp;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.&nbsp;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. (&lt;modules&gt; 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 &lt;modulename&gt; clean install command you did earlier last week is the same as cd &lt;modulename&gt; &amp; 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.&nbsp;</div><div>So&nbsp;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 target="_blank" href="http://code.google.com/p/gwt-maven/issues/detail?id=65">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 &lt;build&gt;&lt;plugins&gt;, find the plugin called&nbsp;gwt-maven-plugin and under the &lt;extraJvmArguments&gt; specify some good memory arguments, for e.g.&nbsp;</div>
<div><br></div><div>-Xmx1024M&nbsp;<span class="Apple-style-span" style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px;">-XstartOnFirstThread</span></div>
<div><font class="Apple-style-span" face="Verdana, Helvetica, Arial, sans-serif"><span class="Apple-style-span" style=""><br></span></font></div>
<div><font class="Apple-style-span" face="Verdana, Helvetica, Arial, sans-serif"><span class="Apple-style-span" style="">so your tag would like something like:</span></font></div>
<div><font class="Apple-style-span" face="Verdana, Helvetica, Arial, sans-serif"><span class="Apple-style-span" style=""><br></span></font></div>
<div><font class="Apple-style-span" face="Verdana, Helvetica, Arial, sans-serif"><span class="Apple-style-span" style="">&lt;extraJvmArgs&gt;<span class="Apple-style-span" style="font-family:arial;">-Xmx1024M&nbsp;<span class="Apple-style-span" style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:13px;">-XstartOnFirstThread&nbsp;<span class="Apple-style-span" style="font-size:small;">-Dconnection.string="${db.connection.string}" -Ddb.driver=${db.driver}&lt;/extraJvmArgs&gt;</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">&lt;<a rel="nofollow" ymailto="mailto:yighu@yahoo.com" target="_blank" href="mailto:yighu@yahoo.com">yighu@yahoo.com</a>&gt;</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 style="position:fixed"></div>


</div><br>

      </body></html>