You need to set memory values using the MAVEN_OPTS environment variable; Mac Java preferences probably don't affect Maven's internals. On Dec 21, 2010 12:41 PM, "Arun Shah" <[email protected]> wrote: > Good Afternoon. > > I am using flexmojos for the first time. I am running into a Java Heap Space > error, listed at the end of this post. > > I have already added these settings to my Java Preferences in Mac Snow > Leopard: > -Xms512m -Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=64m > > I am compiling a flex app which has a main module and three more modules. > The compilation proceeds fine if there is only one module (any one of the > three). With two or more, the error appears. The plugin looks like this: > > ... > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>4.0-beta-5</version> > <extensions>true</extensions> > > <configuration> > > <sourcePaths> > <path>${basedir}/src/main/flex</path> > </sourcePaths> > <sourceFile>iamMain.mxml</sourceFile> > <outputDirectory>target</outputDirectory> > <modules> > <module> > <finalName>GroupFormImp</finalName> > <optimize>false</optimize> > <sourceFile>mod/GroupFormImp.mxml</sourceFile> > <destinationPath>mod</destinationPath> > </module> > <module> > <finalName>ResourceFormImp</finalName> > <optimize>false</optimize> > <sourceFile>mod/ResourceFormImp.mxml</sourceFile> > <destinationPath>mod</destinationPath> > </module> > <module> > <finalName>RoleFormImp</finalName> > <optimize>false</optimize> > <sourceFile>mod/RoleFormImp.mxml</sourceFile> > <destinationPath>mod</destinationPath> > </module> > </modules> > > <locales><locale>en_US</locale></locales> > > <!--themes> > <theme>${flex.home}/frameworks/themes/Halo/halo.swc</theme> > </themes--> > </configuration> > > <dependencies> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>4.0.0.14159</version> > <type>pom</type> > </dependency> > </dependencies> > </plugin> > ... > > Any help would be much appreciated. > Thank you. > > cortlander > > Error excerpt: > > Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: > Java heap space > at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method) > at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767) > at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42) > at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700) > at java.lang.Thread.run(Thread.java:680) > Error: Java heap space > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 44.163s > [INFO] Finished at: Tue Dec 21 15:30:08 EST 2010 > [INFO] Final Memory: 69M/123M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-beta-5:compile-swf > (default-compile-swf) on project rbac: Got 1 errors building project, check > logs -> [Help 1] > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/
-- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
