[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Can you re-run that build with the -X (Maven debug) flag? That should give more information about the error.
Kevin Simonson wrote:
Jeanne Boyarsky wrote:Can you re-run that build with the -X (Maven debug) flag? That should give more information about the error.
I re-ran it with "mvn -e -X clean install" and I got:
[INFO] Compiling 1412 source files to C:\Sandbox\ct\fsbe-domain\domain-prod\targ
et\test-classes
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.sun.tools.javac.util.Convert.utf2string(Convert.java:143)
at com.sun.tools.javac.util.Name.toString(Name.java:146)
at java.lang.String.valueOf(String.java:2847)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at com.sun.tools.javac.comp.Check.localClassName(Check.java:411)
at com.sun.tools.javac.comp.Enter.visitClassDef(Enter.java:371)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:591)
at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258)
at com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:687)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:591)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480)
at com.sun.tools.javac.comp.Attr.visitNewClass(Attr.java:1790)
at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1372)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:504)
at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1513)
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java
:1321)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:460)
at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1294)
at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.j
ava:1167)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480)
at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:496)
at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:918)
at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:781)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] An unknown compilation problem occurred
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] FT-FTBE-CT ........................................ SUCCESS [14.072s]
[INFO] FT-FTBE-CT fs-api ................................. SUCCESS [14.586s]
[INFO] FT-FTBE-CT fsbe-domain ............................ SUCCESS [4.087s]
[INFO] FT-FTBE-CT fsbe-domain domain-prod ................ FAILURE [8:05.117s]
[INFO] FT-FTBE-CT fsbe-domain fsbe-search-feeder ......... SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ............................ SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-config .................. SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-test-tools .............. SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-schema .................. SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-core .................... SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-webapp-common ........... SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-webapp .................. SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-webapp-development-login SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-functest-webapp ......... SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-functest-test-tools ..... SKIPPED
[INFO] FT-FTBE-CT ct-rest-api ct-functest ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8:38.392s
[INFO] Finished at: Sat Aug 30 15:58:22 MDT 2014
[INFO] Final Memory: 45M/436M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
0:testCompile (default-testCompile) on project fsbe-domain: Compilation failure
[ERROR] An unknown compilation problem occurred
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:3.0:testCompile (default-testCompi
le) on project fsbe-domain: Compilation failure
An unknown compilation problem occurred
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
Is this an indication that I have a memory leak? How can that be, when every other software engineer where I work runs "mvn clean install" without any problem at all?
Jayesh A Lalwani wrote:You increased the memory for surefire. SUrefire is used to run unit tests. THe problem is you need more memory during compilation. TO increase the memory given to the compiler, you need to give more memory to maven itself by changing the the MAVEN_OPTS environment variable. Try setting MAVEN_OPTS to -Xmx1024m
Don't get me started about those stupid light bulbs. |