Have tried with a heap size of 4096 and it still dies with same error. On Wednesday, August 7, 2013 2:52:36 PM UTC-7, Feng Xiao wrote: > > > > > On Wed, Aug 7, 2013 at 11:42 AM, craig <[email protected] > <javascript:>>wrote: > >> Hello, >> >> I'm trying to build the java version of protobuf on mac and can't. I used >> brew to download and install protoc fine, version 2.5.0 is running. But now >> I'm trying to create the java files and can't. I've downloaded the >> distribution and expanded it fine. cd to the java dir and then run 'mvn >> package' (or even 'mvn test' outputs the same result). Get the following >> output: >> sh-3.2# mvn package >> [INFO] Scanning for projects... >> [WARNING] >> [WARNING] Some problems were encountered while building the effective >> model for com.google.protobuf:protobuf-java:bundle:2.5.0 >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.felix:maven-bundle-plugin is missing. @ line 135, column 15 >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 57, >> column 15 >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 64, >> column 15 >> [WARNING] >> [WARNING] It is highly recommended to fix these problems because they >> threaten the stability of your build. >> [WARNING] >> [WARNING] For this reason, future Maven versions might no longer support >> building such malformed projects. >> [WARNING] >> [INFO] >> >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Protocol Buffer Java API 2.5.0 >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- maven-antrun-plugin:1.3:run (generate-sources) @ protobuf-java >> --- >> [INFO] Executing tasks >> [INFO] Executed tasks >> [INFO] Registering compile source root >> /Users/craig/Downloads/protobuf-2.5.0/java/target/generated-sources >> [INFO] >> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ >> protobuf-java --- >> [WARNING] Using platform encoding (MacRoman actually) to copy filtered >> resources, i.e. build is platform dependent! >> [INFO] skip non existing resourceDirectory >> /Users/craig/Downloads/protobuf-2.5.0/java/src/main/resources >> [INFO] >> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ >> protobuf-java --- >> [INFO] Changes detected - recompiling the module! >> [WARNING] File encoding has not been set, using platform encoding >> MacRoman, i.e. build is platform dependent! >> [INFO] Compiling 45 source files to >> /Users/craig/Downloads/protobuf-2.5.0/java/target/classes >> [INFO] >> [INFO] --- maven-antrun-plugin:1.3:run (generate-test-sources) @ >> protobuf-java --- >> [INFO] Executing tasks >> [INFO] Executed tasks >> [INFO] Registering compile test source root >> /Users/craig/Downloads/protobuf-2.5.0/java/target/generated-test-sources >> [INFO] >> [INFO] --- maven-resources-plugin:2.6:testResources >> (default-testResources) @ protobuf-java --- >> [WARNING] Using platform encoding (MacRoman actually) to copy filtered >> resources, i.e. build is platform dependent! >> [INFO] skip non existing resourceDirectory >> /Users/craig/Downloads/protobuf-2.5.0/java/src/test/resources >> [INFO] >> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ >> protobuf-java --- >> [INFO] Changes detected - recompiling the module! >> [WARNING] File encoding has not been set, using platform encoding >> MacRoman, i.e. build is platform dependent! >> [INFO] Compiling 60 source files to >> /Users/craig/Downloads/protobuf-2.5.0/java/target/test-classes >> >> >> The system is out of resources. >> Consult the following stack trace for details. >> java.lang.OutOfMemoryError: Java heap space >> at >> com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:139) >> at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63) >> at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1105) >> at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:512) >> at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550) >> at >> com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804) >> at >> com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) >> at com.sun.tools.javac.main.Main.compile(Main.java:353) >> at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115) >> at >> org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126) >> at >> org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169) >> at >> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785) >> at >> org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:152) >> at >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >> at >> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >> at >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >> [INFO] ------------------------------------------------------------- >> [ERROR] COMPILATION ERROR : >> [INFO] ------------------------------------------------------------- >> [ERROR] An unknown compilation problem occurred >> [INFO] 1 error >> [INFO] ------------------------------------------------------------- >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 7.389s >> [INFO] Finished at: Wed Aug 07 11:26:39 PDT 2013 >> [INFO] Final Memory: 13M/123M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile >> (default-testCompile) on project protobuf-java: Compilation failure >> [ERROR] An unknown compilation problem occurred >> [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 >> >> I've increased the java heap size of 1024, but still the same result. >> Have download the tar file a couple of times as well, all with same result. >> > How did you increase heap size? Probably try a larger value? 2048, 4096? > > >> >> Any ideas? >> >> Thanks..... >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Protocol Buffers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/protobuf. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >
-- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.
