[Building Sakai] Problem with CLE 2.9 compiling

Matthew Jones matthew at longsight.com
Fri Jan 25 09:42:56 PST 2013


You have to give maven more memory with the MAVEN_OPTS environment
variable. It's possible the perm size here might not even be enough.

https://confluence.sakaiproject.org/pages/viewpage.action?pageId=82249322

I know I built it last night with these options
export MAVEN_OPTS='-Xms1024m -Xmx1024m -XX:PermSize=256m
-XX:MaxPermSize=512m'


On Fri, Jan 25, 2013 at 12:40 PM, Javier Martinez <javier at fisica.unam.mx>wrote:

> Hi,
>
> I´m installing sakai CLE 2.9 in ubuntu 12.10 with java 7 and maven 3.0.4
>
> When I'm compiling, it said it was out of resources. I'm running a virtual
> machine in VMWare Fusion with 2 GB memory RAM.
>
> Any suggestion?
>
>
> avo at ubuntu:/opt/tomcat/sakai$ java -version
> java version "1.7.0_11"
> Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
> javo at ubuntu:/opt/tomcat/sakai$ mvn -version
> Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
> Maven home: /opt/maven/apache-maven-3.0.4
> Java version: 1.7.0_11, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk1.7.0_11/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.5.0-17-generic", arch: "amd64", family:
> "unix"
>
>
>
>
> [INFO] Total time: 2:21.463s
> [INFO] Finished at: Fri Jan 25 09:24:58 PST 2013
> [INFO] Final Memory: 93M/507M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project sakai-site-manage-api: Compilation failure
> [ERROR] Failure executing javac, but could not parse the error:
> [ERROR]
> [ERROR]
> [ERROR] The system is out of resources.
> [ERROR] Consult the following stack trace for details.
> [ERROR] java.lang.OutOfMemoryError: PermGen space
> [ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
> [ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
> [ERROR] at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
> [ERROR] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> [ERROR] at
> org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:56)
> [ERROR] at com.sun.tools.javac.comp.Check.<init>(Check.java:96)
> [ERROR] at com.sun.tools.javac.comp.Check.instance(Check.java:86)
> [ERROR] at com.sun.tools.javac.code.Types.<init>(Types.java:101)
> [ERROR] at com.sun.tools.javac.code.Types.instance(Types.java:88)
> [ERROR] at com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:264)
> [ERROR] at
> com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:226)
> [ERROR] at
> com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:331)
> [ERROR] at
> com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:88)
> [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:424)
> [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:353)
> [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:342)
> [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:333)
> [ERROR] at com.sun.tools.javac.Main.compile(Main.java:94)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> [ERROR] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
> [ERROR] at
> org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554)
> [ERROR] at
> org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161)
> [ERROR] at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605)
> [ERROR] at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
> [ERROR] at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :sakai-site-manage-api
>
>
>
>
>
>
>
>
>
> Javier Martinez
> javier at fisica.unam.mx
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130125/fcade79c/attachment.html 


More information about the sakai-dev mailing list