Hey Tom thanks I actually tried that but I think it gave me no class found
error...I wasn't sure and at my work on XP machine I dont think I had to set
anything like this and it worked fine. Well also I have laptop at home which
has XP and I tried doing the same thing and it failed on this error too.

On 10/8/07, Tom Schneider <[EMAIL PROTECTED]> wrote:
>
>
> Try:
> set MAVEN_OPT=-Xmx512m
>
> before you run the maven build.  The problem is that maven doesn't have
> enough heap space to run the tests.  The environment variable above should
> increate the maximum java heap space for maven.
> Tom
>
>
> Pavel Sapozhnikov wrote:
> >
> > Hi I am trying to mvn the checked out Struts2. First I have successfully
> > mvn'ed xwork 2.0.4 and that went fine now I am trying to mvn Struts2 and
> > when it gets to Test I get the following:
> >
> > Tests run: 9, Failures: 2, Errors: 0, Skipped: 3, Time elapsed: 13.472sec
> > <<< F
> > AILURE!
> > Running org.apache.struts2.util.StrutsTypeConverterTest
> > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.767sec
> > Running org.apache.struts2.views.jsp.URLTagTest
> > Tests run: 72, Failures: 2, Errors: 0, Skipped: 70, Time elapsed: 11.482
> > sec
> > <<<
> >  FAILURE!
> > Running org.apache.struts2.util.InvocationSessionStoreTest
> > Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 6.65 sec
> > <<<
> > FAI
> > LURE!
> > Running
> > org.apache.struts2.interceptor.StrutsConversionErrorInterceptorTest
> > Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 7.481sec
> > <<< FA
> > ILURE!
> > Running org.apache.struts2.views.util.UrlHelperTest
> > Tests run: 38, Failures: 1, Errors: 0, Skipped: 37, Time elapsed: 9.75sec
> > <<< F
> > AILURE!
> > Running org.apache.struts2.views.jsp.MergeIteratorTagTest
> > Tests run: 6, Failures: 1, Errors: 0, Skipped: 5, Time elapsed: 4.915sec
> > <<< FA
> > ILURE!
> > Running org.apache.struts2.components.template.BaseTemplateEngineTest
> > dummy resource
> > url=file:/C:/Users/Pavel/workspace/Struts/core/target/test-classe
> > s/org/apache/struts2/components/template/dummy.properties
> > resource
> > file=C:\Users\Pavel\workspace\Struts\core\target\test-classes\org\apach
> > e\struts2\components\template\dummy.properties
> > theme properties
> > dir=C:\Users\Pavel\workspace\Struts\core\target\test-classes\or
> > g\apache\struts2\components\template
> > Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.358sec
> > <<< FA
> > ILURE!
> > Running org.apache.struts2.dispatcher.ServletRedirectResultTest
> > org.apache.maven.surefire.booter.SurefireExecutionException: Java heap
> > space; ne
> > sted exception is java.lang.OutOfMemoryError: Java heap space
> > java.lang.OutOfMemoryError: Java heap space
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] There are test failures.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 2 minutes 21 seconds
> > [INFO] Finished at: Mon Oct 08 17:45:24 EDT 2007
> > [INFO] Final Memory: 28M/61M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > If anyone has any ideas on what exactly is going on please help. At work
> > on
> > XP machine  this doesn't happen. I am using Vista with Java 1.6 and
> latest
> > maven 2.0.7 I believe. Any help would be greatly appreciated. Thanks.
> >
> > --
> > Pavel Sapozhnikov
> > xFact, Inc
> > [EMAIL PROTECTED]
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/building-struts-with-maven-error-Java-Heap-Space-tf4590970.html#a13107953
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]

Reply via email to